How to delete docker images/containers
Docker images often occupy hard disk space unconsciously. To clear redundant images, you can use the following methods:
1. Enter the root permission
Sudo su
2. Stop all container to delete the images:
Docker stop $ (docker ps-a-q)
Add a command to delete all container:
Docker rm $ (docker ps-a-q)
3. view the current images.
Docker images
4. delete images and use the image id to specify who to delete.
Docker rmi <image id>
You can use
Docker rmi $ (docker images | grep "^ <none>" | awk "{print $3 }")
To delete all images
Docker rmi $ (docker images-q)
Install Docker in CentOS 6/7 Series
Detailed explanation of the entire process of building Gitlab CI for Docker
Docker installation application (CentOS 6.5_x64)
What is the difference between Docker and a normal Virtual Machine?
Use MySQL in Docker
Docker will change everything
Docker installation application (CentOS 6.5_x64)
Docker details: click here
Docker: click here
This article permanently updates the link address: