Beispiel #1
0
func (ep *endpoint) addHostEntries(recs []etchosts.Record) {
	ep.Lock()
	container := ep.container
	ep.Unlock()

	if container == nil {
		return
	}

	if err := etchosts.Add(container.config.hostsPath, recs); err != nil {
		log.Warnf("Failed adding service host entries to the running container: %v", err)
	}
}
Beispiel #2
0
func (sb *sandbox) addHostsEntries(recs []etchosts.Record) {
	if err := etchosts.Add(sb.config.hostsPath, recs); err != nil {
		log.Warnf("Failed adding service host entries to the running container: %v", err)
	}
}