reverse host and container port in metadata

This commit is contained in:
Bradley Cicenas 2017-06-18 20:17:56 +00:00
parent 4de7036e2f
commit 58d9e4e194

View File

@ -66,7 +66,7 @@ func portsFormat(ports map[api.Port][]api.PortBinding) string {
continue
}
for _, binding := range v {
s := fmt.Sprintf("%s -> %s:%s", k, binding.HostIP, binding.HostPort)
s := fmt.Sprintf("%s:%s -> %s", binding.HostIP, binding.HostPort, k)
published = append(published, s)
}
}