首页 > 其他 > 详细

docker pull 覆盖本地镜像问题

时间:2020-09-17 14:01:11      阅读:320      评论:0      收藏:0      [点我收藏+]

验证:

$ docker images |grep cookdata
test-cache                                                  1.0.0                      fededff87eb2        About a minute ago   6.2GB
(base) [wuhf@aps ~]$ docker pull  test-cache:1.0.0
1.0.0: Pulling from test-cache
Digest: sha256:5787160e3812190af85ea486c8572e528c9b2362e6102e2e7820a38d87f616e4
Status: Downloaded newer image for test-cache:1.0.0
docker images |grep cookdata
test-cache                                                  1.0.0                      171dcd1d512b        8 days ago           8.66GB

本地有新镜像,仓库里是老镜像,如果从仓库pull老镜像会覆盖新镜像。

方法1: 更新仓库
方法2: 停止pull
方法3: 从仓库中删除该镜像

docker pull 覆盖本地镜像问题

原文:https://www.cnblogs.com/oaks/p/13683705.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!