mirror of https://github.com/docker/docs.git
reschedule swarm container only
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
4ce93c1997
commit
fbab9d05ba
|
@ -38,6 +38,10 @@ func (w *Watchdog) removeDuplicateContainers(e *Engine) {
|
|||
defer w.Unlock()
|
||||
|
||||
for _, container := range e.Containers() {
|
||||
// skip non-swarm containers
|
||||
if container.Config.SwarmID() == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
for _, containerInCluster := range w.cluster.Containers() {
|
||||
if containerInCluster.Config.SwarmID() == container.Config.SwarmID() && containerInCluster.Engine.ID != container.Engine.ID {
|
||||
|
|
Loading…
Reference in New Issue