The import and export of the container of Docker practice _docker

Source: Internet
Author: User

Objective

The popularity of Docker is inextricably linked to its ease of sharing and portability of containers. Not only can users submit containers to the public server, they can also export containers to the local file system. Again, we can import the exported containers into the Docker environment.

If you want to export a local container, you can use a Docker export command that you can use to docker import import from the container snapshot file as a mirror

1, first find the running container ID

2, and then use docker export the command to export the container (here in the GWAS_HF case of containers)

3. View export results, scp command transfer to another server

4, use docker import from the container snapshot file and then import as a mirror

followed by the rna mirror name, v1.7 for its tag.

5, see if the mirror has been imported


Mirror import success is shown here.

6, the final use of the image of the new container, and the original server on the required documents to scp come over.

Summarize

The above is Docker import and export the entire contents of the container, I hope the content of this article for everyone's study or work can help, if there is doubt you can message exchange.

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.