diff --git a/hosts.go b/hosts.go index 5e5691a..8b9373b 100644 --- a/hosts.go +++ b/hosts.go @@ -89,7 +89,7 @@ func (h *Hosts) Add(containerId string) { IPAddress: container.NetworkSettings.IPAddress, CanonicalHostname: container.Config.Hostname, Aliases: []string{ - // container.Name[1:], // could contain "_" + strings.Replace(container.Name[1:], "_", "-"), // could contain "_" }, }