1. Mirror related commands
Check locally what image files are available:
docker images
The name of the mirror is some of our common software. The mirror is equivalent to packaging the software and the operating environment required by the software into a mirror file. In the future, the corresponding container will be created through this mirror file. After the container is installed, these software will automatically There is. The image file is actually a file system that covers our software and its required operating environment.
Download the redis image, and the image will be automatically installed as soon as the container redis is started.
docker search redis
When searching, it needs to interact with the network. It will go to dockerhub to check whether there are these image files.
Download the redis command with the specified version number:
docker pull redis:3.2
After the colon is the version number, if you do not specify a version number, the latest version will be downloaded by default.
Docker deletes the image file:
docker rmi id
View the list of all docker images:
docker images -q
Delete all mirror files:
docker rmi `docker images -q`