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  >  Article  >  Operation and Maintenance  >  How to transplant docker

How to transplant docker

尚
Original
2020-04-01 11:17:024314browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn