驗證:
$ 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: 從倉庫中刪除該鏡像