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.