1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 10:17:26 +08:00
docker-labs/services/check_used_ports_task.go
Jonathan Leibiusky @xetorthio 77905f3fd8 Query DinD instances for running containers and list the published ports
so the user can reverse proxy to the instance/port easily.
2016-12-01 17:28:55 -03:00

11 lines
172 B
Go

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