![](/img/trans.png)
[英]How to export my local docker image to a tar and the load on another computer
[英]How to prevent docker load image from cache?
我使用以下命令加載了圖像:
$ docker load -i image.tar
我在圖像列表中有這樣的內容:
$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE sandbox-hdp latest c3cef4760133 8 weeks ago 12.2GB
然后我決定將其刪除:
$ docker rmi c3c
但是當我再次加載圖像並運行$ docker images
我得到了相同的輸出。 它不是新創建的圖像。
我試過$ docker system prune
清除緩存,但沒有幫助。 如何將圖像加載為新圖像?
如果要從同一檔案庫( docker load -i image.tar
或更近期的docker load -i image.tar
docker image load -i
) docker image load -i
,則應該獲得相同的映像(意味着具有相同的映像ID)
清除緩存不會改變這一點。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.