1.4-docker mirroring using containers to generate new mirrors

Source: Internet
Author: User
Tags docker ps docker run

Docker creates mirrors based on containers that already have mirrors


* Docker run Centos/bin/bash first causes the mirror to open the container.

* Docker start DE8 launches the specified mirror container. De8 is the ID of the image and can be shortened to 3 bits.

* After running Docker exec-it De8/bin/bash, enter into the specified container, DE8 is the ID, can be abbreviated to 3-bit. We make some changes, such as installing something, and then creating a new image for the container.

* Exit the container and run Docker commit-m "Change somth"-a "Somebody info" container_id (get ID via Docker ps-a) New image name

* Example: Docker commit-m "Install httpd"-a "aming" 2c74d574293f Aming/centos

* This command is a bit like svn commit,-m plus some change information,-A to specify the author related information 2c74d This string is the old container ID, followed by the name of the new mirror

1.4-docker mirroring using containers to generate new mirrors

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.