1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-15 02:37:27 +08:00
docker-labs/services/check_used_ports_task.go
Jonathan Leibiusky (@xetorthio) 69050373d7 Show docker swarm used ports
2016-12-13 08:02:48 -06:00

13 lines
206 B
Go

package services
type checkUsedPortsTask struct {
}
func (c checkUsedPortsTask) Run(i *Instance) {
if ports, err := GetUsedPorts(i); err == nil {
for _, p := range ports {
i.setUsedPort(p)
}
}
}