我已经建立了一个由三名工人和一名经理组成的码头群。我希望使用自定义Dockerfile从映像构建中启动三个工作人员上的容器。节点正确地注册到管理器:
docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS
0viqhgcdwul2vhvmgxbv31eg0 worker1 Ready Active
mabikwr5ufwa7lv8xk0liyqbd worker3 Ready Active
s1m1qiarlyfgtljghgomcztlb worker2 Ready Active
tqp7m2ohzvgqc9c60aex4x9u5 * manager Ready Drain Leader但当我执行以下命令时,
docker service create --replicas 3 -p 8080:8080 --name myService myImageworker1不执行容器,我得到了以下错误:
unable to pin image myImage to digest: errors:
denied: requested access to the resource is denied
unauthorized: authentication required失败的总是worker1,其他的都是正确的,图像就像他们期望的那样工作。它是从哪里来的,我如何解决这个问题?
发布于 2017-02-22 16:01:46
好吧,我的错。我认为管理器会以某种方式将图像发送到其他节点,但它并不明显。由于某种原因,工人2和3有一个图像的副本,以便他们可以找到它,但不是工人1.
不管怎样,谢谢你的回答。
https://stackoverflow.com/questions/42395304
复制相似问题