1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-10-05 18:03:21 +08:00

Query DinD instances for running containers and list the published ports

so the user can reverse proxy to the instance/port easily.
This commit is contained in:
Jonathan Leibiusky @xetorthio
2016-12-01 17:28:55 -03:00
parent afa47c0bfc
commit 77905f3fd8
7 changed files with 54 additions and 7 deletions

View File

@@ -27,6 +27,7 @@ type Instance struct {
IsManager *bool `json:"is_manager"`
Mem string `json:"mem"`
Cpu string `json:"cpu"`
Ports []uint16 `json:"ports"`
}
func (i *Instance) IsConnected() bool {