1. 问题描述
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
9cn5x84lnmga getstartedlab_web.1 /test:part2 myvm1 Running Running 5 minutes ago
inl5ftutxrt1 _ getstartedlab_web.1 /test:part2 myvm2 Shutdown Rejected 5 minutes ago "No such image: /test…"
3ijvwlwy0njq _ getstartedlab_web.1 /test:part2 myvm2 Shutdown Rejected 5 minutes ago "No such image: /test…"
l23p0s5twz0t _ getstartedlab_web.1 /test:part2 myvm2 Shutdown Rejected 5 minutes ago "No such image: /test…"
0pkyrtf87y9d getstartedlab_web.2 /test:part2 myvm1 Running Running 5 minutes ago
5xeeufwxwjik getstartedlab_web.3 /test:part2 myvm1 Running Running 5 minutes ago
aj8lqwqpml0z getstartedlab_web.4 /test:part2 myvm1 Running Running 5 minutes ago
wxfo7e8tklms _ getstartedlab_web.4 /test:part2 myvm2 Shutdown Rejected 5 minutes ago "No such image: /test…"
2n8a69z1qgq1 _ getstartedlab_web.4 /test:part2 myvm2 Shutdown Rejected 5 minutes ago "No such image: /test…"
djfxrsph4ehp _ getstartedlab_web.4 /test:part2 myvm2 Shutdown Rejected 5 minutes ago "No such image: /test…"
6te4gpdb1njm getstartedlab_web.5 */test:part2 myvm1 Running Running 5 minutes ago
2.解决方案
$ docker stack deploy -c docker-compose.yml getstartedlab --with-registry-auth
3. 参考内容
https://docs.docker.com/engine/reference/commandline/deploy/#options