1. Run workflow When we install the Docker engine, we will verify that the Docker Engine has been installed correctly by running the Let's analyze the execution flow of the run command: The execution flow chart of run is as follows When we try to run an image that is not found on our local machine or in DockerHub: First start the Docker engine: systemctl start docker Then test it: docker run wanliguyicheng123456789 Docker returns an error that the image cannot be found. 2. Basic commands of mirroringList mirrors We can use docker images to list the images on the local host. Description of each option:
Note: The same repository source can have multiple tags, representing different versions of this repository source. Optional parameters:
docker images -q feb5d9fea6a5 Search Mirror We can search for images from the Docker Hub website. The Docker Hub website is: https://hub.docker.com. For example, if we want to search for the mysql image: You can also use the docker search command to search for the mysql image. docker search mysql Description of each option:
Optional parameters:
Search STARS for more than 3000 mysql images: docker search mysql -f=stars=3000 Download image grammar: docker pull [OPTIONS] NAME[:TAG|@DIGEST] OPTIONS description:
Test: Use the command docker pull to download the mysql image docker pull mysql Download the specified version of the MySQL image: First, the version must be supported in Docker Hub docker pull mysql:5.7 Use the docker images command again to view the downloaded image: Deleting an image Delete by image name: docker rmi -f mysql Parameter description: -f: forced deletion To delete by image ID: docker rmi -f 8b43c6af2ad0 Delete multiple images: separate multiple image IDs with spaces docker rmi -f image_id image_id image_id image_id Delete all images: first find out all image IDs, and then delete the images one by one by image ID docker rmi -f $(docker images -aq) All images have been deleted! Docker Commands The above is the detailed content of the Docker run process and the basic commands of the image. For more information about Docker, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: CSS3 radar scan map sample code
>>: Function overloading in TypeScript
Table of contents 1. for loop: basic and simple 2...
Automatic web page refresh: Add the following code...
Table of contents Problem Description Rendering T...
Table of contents What are spread and rest operat...
Let's first look at the definition of the pos...
MySQL supports hash and btree indexes. InnoDB and...
Table of contents 1. Shopping cart example 2. Cod...
Since the entire application needs to be deployed...
Introduction To put it simply, tcpdump is a packe...
This article records the method of sharing files ...
There is a table in the project that needs to be ...
First, what is box collapse? Elements that should...
List of HTML tags mark type Name or meaning effec...
Table of contents Introduction How to connect to ...
This article example shares the specific code of ...