mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
reverse host and container port in metadata
This commit is contained in:
parent
4de7036e2f
commit
58d9e4e194
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user