docker刪除容器和刪除鏡像的差別

  先停止鏡像運行,然後再刪除   這樣刪除是錯誤的,只要在運行docker run container_name還是可以啓動容器 應該使用docker image刪除 查看當前有哪些鏡像,準備刪除hello-world鏡像   可以看到沒有了hello-world鏡像,容器刪除時,會帶走「卷」   再次運行hello-world,可以看到本地已經沒有了hello-world,需要從網上倉庫拉取
相關文章
相關標籤/搜索