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

Show docker swarm used ports

This commit is contained in:
Jonathan Leibiusky (@xetorthio)
2016-12-05 09:21:43 -03:00
parent a7811b4e33
commit 69050373d7
10 changed files with 110 additions and 15 deletions

View File

@@ -1,6 +1,10 @@
package services
import "github.com/docker/docker/api/types/swarm"
import (
"log"
"github.com/docker/docker/api/types/swarm"
)
type checkSwarmStatusTask struct {
}
@@ -12,6 +16,8 @@ func (c checkSwarmStatusTask) Run(i *Instance) {
} else {
i.IsManager = nil
}
} else {
log.Println(err)
}
}