我试图部署一个码头群使用数字海洋的对接机司机。
这是当前包含多个公共DockerHub映像的单个节点,以及一个私有节点。
我在配置它以正确地接受私人形象方面有困难。
我让SSHed进入节点,并使用docker login。在那之后,我能够正确地docker pull的私人形象。
但是,当我试图运行docker stack deploy -c myapp.yml myapp时,我会收到这样的警告:
image me/myapp:latest could not be accessed on a registry to record
its digest. Each node will access me/myapp:latest independently,
possibly leading to different nodes running different versions of the image.我需要做什么才能正确登录到码头群模式下的私人注册中心?
发布于 2020-04-06 18:01:05
您需要--with-registry-auth标志,例如:
docker stack deploy -c myapp.yml --with-registry-auth myapp从docker stack deploy --help输出:
--with-registry-auth Send registry authentication details to Swarm agents 发布于 2020-10-13 09:37:41
首先,您需要对repo进行停靠登录,然后使用--带有--注册表-auth标志进行堆栈部署。
https://devops.stackexchange.com/questions/9444
复制相似问题