Ejemplo n.º 1
0
func (ep *endpoint) deleteHostEntries(recs []etchosts.Record) {
	ep.Lock()
	container := ep.container
	ep.Unlock()

	if container == nil {
		return
	}

	if err := etchosts.Delete(container.config.hostsPath, recs); err != nil {
		log.Warnf("Failed deleting service host entries to the running container: %v", err)
	}
}
Ejemplo n.º 2
0
func (sb *sandbox) deleteHostsEntries(recs []etchosts.Record) {
	if err := etchosts.Delete(sb.config.hostsPath, recs); err != nil {
		log.Warnf("Failed deleting service host entries to the running container: %v", err)
	}
}