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) } }
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) } }