- Kubernetes for Developers
- Joseph Heck
- 201字
- 2021-08-27 19:04:12
Clearing and cleaning Docker images
Since we will be using Docker to build container images, it will be useful to know how to get rid of images. You have already seen the list of images with the docker image command. There are also intermediate images that are maintained by Docker that are hidden in that output. To see all the images that Docker is storing, use the following command:
docker images -a
If you have only pulled the alpine image as per the preceding text, you likely won't see any additional images, but as you build images in the next chapter, this list will grow.
You can remove images with the docker rmi command followed by the name of the image. By default, Docker will attempt to maintain images that containers have used recently or referenced. Because of this, you may need to force the removal to clean up the images.
If you want to reset and remove all the images and start afresh, there is a handy command that will do that. By tying together Docker images and docker rmi, we can ask it to force remove all the images it knows about:
docker rmi -f $(docker images -a -q)
- R Data Mining
- Visual C# 2008開發技術實例詳解
- 數據庫原理與應用技術學習指導
- Hands-On Linux for Architects
- INSTANT Autodesk Revit 2013 Customization with .NET How-to
- INSTANT Drools Starter
- 悟透AutoCAD 2009案例自學手冊
- 教育機器人的風口:全球發展現狀及趨勢
- 嵌入式GUI開發設計
- Apache源代碼全景分析(第1卷):體系結構與核心模塊
- Mastering Android Game Development with Unity
- 當產品經理遇到人工智能
- 牛津通識讀本:大數據(中文版)
- PVCBOT零基礎機器人制作(第2版)
- Flash 8中文版全程自學手冊