1.3-docker Image Management

Source: Internet
Author: User
Tags docker ps

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.