コード例 #1
0
ファイル: endpoint.go プロジェクト: hariharan16s/libnetwork
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)
	}
}
コード例 #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)
	}
}