export path and name of the tar package." 2. Use the import command in other machines to complete the transplantation."/> export path and name of the tar package." 2. Use the import command in other machines to complete the transplantation.">
Home >Operation and Maintenance >Docker >How to transplant docker
Docker transplantation method:
1. Use the export command to export the docker container
docker export container name or container ID > Export path And the name of the tar package
For example:
docker export centos > ./centos.tar
2. Import on other machines:
docker import tar package path REPOSITORY: tag -------- The default tag is latest
For example:
docker import centos.tar test/centos
For more related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.
The above is the detailed content of How to transplant docker. For more information, please follow other related articles on the PHP Chinese website!