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:
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user