content
1) List the image list docker images
2) Search for mirrors docker search
3) Download the image docker pull
4) Delete the mirror docker rmi
1) List the image list docker images
Docker images [options]
OPTIONS |
Optional parameters: |
-a |
Show all images (including intermediate layers) |
-q |
Only show mirror ID |
-qa |
can be combined |
--digests |
Displays summary information about the image |
--no-trunc |
Display complete mirror information |
Check out the image's title:
REPOSITORY |
Mirror repository source |
TAG |
Image tags (versions) The same repository has multiple TAG images and multiple versions; we use REPOSITORY:TAG to define different images; |
IMAGE ID |
Mirror ID, the unique identifier of the mirror |
CREATE |
Image creation time |
SIZE |
Image size |
2) Search the mirror docker search
OPTIONS optional parameters:
--no-trunc |
Show full image description |
-s |
List mirrors whose favorites are not less than the specified value |
--automated |
List only images of the Docker Hub auto build type |
3) Download the mirror docker pull
docker pull image name:[TAG]
Note: Without TAG, the latest version latest is downloaded by default
4) Delete the mirror docker rmi
1. Delete a single: docker rmi image name: [TAG]
If you do not write TAG, the latest version latest will be deleted by default
When the container generated by the image is run again, an error will be reported and the deletion will fail;
We need to add -f to force delete
2. Delete multiple: docker rmi -f image name 1:[TAG] image name 2:[TAG]
3. Delete all: docker rmi -f $(docker images -qa)
# 5) Upload image docker pu sh
public (with private libraries of course)
http://blog.java1234.com/blog/articles/575.html
Local (inside LAN)
https://www.jianshu.com/p/fef890c4d1c2
docker images view
docker tag centos:centos7 192.168.1.27:28250/centos7 mark the image to be uploaded
nginx:latest
docker push 192.168.1.27:28250/centos7 to upload the image to the private repository
Verify as follows:
go to the website
http://192.168.1.27:28250/v2/_catalog
How to pull docker hub intranet image?
Pull the image + run the image + give the port number
If there is any infringement, please contact by email, I am sorry.
This is only for learning personal notes, and if there is any reprint, please indicate the source.
Contact email: [email protected]
Learn to test the penguin group together (chat, water group, do not disturb advertising): 826471103