mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
reverse host and container port in metadata
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user