From ca86bdf03cb86a273ac6bdee3609e16fc5c7679e Mon Sep 17 00:00:00 2001 From: scher200 Date: Mon, 9 Feb 2015 13:23:00 +0100 Subject: [PATCH] Update hosts.go --- hosts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "_" }, }