Docker Image Management
Docker pull CentOS//Get CentOS image from warehouse docker.com
Docker images//See which mirrors are locally
Docker tag CentOS aming123//For the CentOS image set label to aming123, then use Docker images to see a row, the image ID of the line is the same as CentOS. For example: Docker tag CentOS centos:wyp123 generates a new image, and the name and tag change to the specified value.
Docker search [Image-name]//searching Docker image from Docker repository, followed by keywords. such as CentOS
Docker run-t-I centos/bin/bash//Use the downloaded image to open the container,-I means that the container's standard input opens,-t for assigning a pseudo terminal, to put-i-t in front of the mirror name
Once the image has been modified, we can submit the image to a new version to be rebuilt locally.
Docker PS//view the running container, plus the-a option to view containers that are not running
Docker RMI CentOS//is used to delete the specified image, where the following parameters can be tag, if it is tag, it is actually deleted, as long as the image has other tags, it will not delete the image. When the following parameter is the mirror ID, the entire image is completely deleted and all the tags are removed together. For example, Docker RMI Wyp123:latest deletes the image of the specified name and tag.
Quick Image Download:
https://www.daocloud.io/register an account and log in and go to the console.
Click on the acceleration in the left sidebar and click Start.
Click on the image warehouse in the left-hand column, click on Daocloud image, click CentOS to find the pull image of Docker pulls daocloud.io/library/centos:7.2.1511 this line.
You can quickly download image files by entering Docker pull daocloud.io/library/centos:7.2.1511 on Linux.
1.3-docker Image Management