google compute engine - Docker swarm-manager displays old container information -
i using docker-machine google compute engine(gce) run a
docker swarm cluster. created swarm 2 nodes
(swnd-01 & swnd-02) in cluster. created daemon container this
in swarm-manager environment:
docker run -d ubuntu /bin/bash
docker ps
shows container running on swnd-01. when tried
executing command on container using docker exec
the
error container not running while docker ps
shows otherwise.
ssh
'ed swnd-01 via docker-machine come know container
exited created. tried docker run
command inside the
swnd-01 still exits. don't understand behavior.
any suggestions thankfully received.
the reason exits /bin/bash
command completes , docker container runs long main process (if run such container -it
flags process keep running while terminal attached).
as why swarm manager thought container still running, i'm not sure. guess there short delay while swarm updates status of everything.
Comments
Post a Comment