Home>Article>Operation and Maintenance> 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 thedocker tutorialcolumn 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!