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)
Phenomenon When using Apache Spark 2.x, you may e...
1. What is mycat A completely open source large d...
Table of contents 1. Configure bridging and captu...
1. Install the Linux system on the virtual machin...
Table of contents 1. Introduction to platform bus...
This article shares the specific code of JavaScri...
Look at the code: Copy code The code is as follows...
Preface Learn to create a file system on your sys...
First we create the database table: CREATE TABLE ...
Copy code The code is as follows: <html> &l...
Table of contents Preface 1. Use for...of to iter...
mysqladmin is an official mysql client program th...
MySQL SQL statement performance tuning simple exa...
The fastest way to experience the latest version ...
Preface This article will focus on the use of Typ...