Docker image View related commands for downloading and deleting image files

1. Mirror related commands

insert image description here
Check locally what image files are available:

docker images

insert image description here
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.
insert image description here
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.
insert image description here
insert image description here
Docker deletes the image file:

docker rmi id

insert image description here
View the list of all docker images:

docker images -q

Delete all mirror files:

docker rmi `docker images -q`

insert image description here

2. Summary

insert image description here

Guess you like

Origin blog.csdn.net/weixin_44860226/article/details/132259355
Recommended