This article mainly explains the import and export of Docker containers, which can be used as a backup for container snapshots. Exporting Docker containers1. First use the command to view the created Docker container docker ps -a At this time, you can see 2. Export a container Exporting a container is very simple. Use the 3. View the exported container ls 4. Download the container View the current path pwd Knowing that the container path is under tmp, we can directly use the FTP remote tool to connect to the host to download: Wait for the container file to download Importing Docker containers
1. First go to the directory where the container file is located As mentioned above, the directory exported by the container is under tmp, so let's go directly to the tmp directory cd /tmp 2. Import container docker import halo.tar halo:latest OPTIONS description: -halo.tar : select the container file name to import The import and export process is similar, so I won’t show you the pictures here. 3. You can delete the container file after you are done rm -rf /tmp/halo.tar This is the end of this article about exporting and importing Docker containers. For more information about exporting and importing Docker containers, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: HTML+Sass implements HambergurMenu (hamburger menu)
>>: 5 basic skills of topic page design (Alibaba UED Shanmu)
I've been playing with the remote development...
1. Commonly used high-order functions of arrays S...
This article example shares the specific code of ...
By default, Docker runs over a non-networked UNIX...
Table of contents Preface Understanding a stack a...
margin:auto; + position: absolute; up, down, left...
Table of contents Storage Engine Memory Managemen...
When troubleshooting system problems, application...
one, G:\MySQL\MySQL Server 5.7\bin> mysqld --i...
Preface I recently wrote a small demo. Because I ...
In the previous chapters, we introduced how to ch...
How to modify the mysql table partitioning progra...
【question】 The INSERT statement is one of the mos...
Table of contents Some basic instructions 1. Chec...
An error message appears when MySQL is started in...