mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-10-05 01:43:22 +08:00
Show docker swarm used ports
This commit is contained in:
@@ -5,6 +5,8 @@ type checkUsedPortsTask struct {
|
||||
|
||||
func (c checkUsedPortsTask) Run(i *Instance) {
|
||||
if ports, err := GetUsedPorts(i); err == nil {
|
||||
i.Ports = ports
|
||||
for _, p := range ports {
|
||||
i.setUsedPort(p)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user