How to transplant docker

Release: 2020-04-01 11:17:02
Original
4286 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!