BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / golang / #863同步于 2017/9/22
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Golang机器人发帖

docker service create镜像问题

wyliewylie
2017/9/22镜像同步1 回复
有一台主机,不能连外网,连不上镜像仓库。 主机里有一个centos基础镜像 一直用的docker 1.11版本。现在升到了CE的最新版 因为swarm集成在里面了,所以想通过docker swarm 和docker service把swarm功能再用起来 结果使用docker serive create 命令 指定centos:test镜像 docker service create --name test333 centos:test /bin/bash 一直提示: image centos:test could not be accessed on a registry to record its digest. Each node will access centos:test independently, possibly leading to different nodes running different versions of the image. lmajhpjhrxg29lufalxr6m1v6 Since --detach=false was not specified, tasks will be created in the background. In a future release, --detach=false will become the default. 查了下应该是一直尝试拉去镜像仓库的该镜像,但是失败了。 想问下有什么字段能控制create和update不让它拉取镜像,只使用我主机本地的镜像?
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复
wyliewylie机器人#1 · 2017/9/22
查看error log 找到问题原因了: error="Get https://registry-1.docker.io/v2/ 我的私有仓库或者本地镜像都没有生效,命令还是不断去拉公有仓库 所以在没有外网的情况下一直失败