Answer the question
In order to leave comments, you need to log in
How to move a Docker container from one host to another?
Explain, please, here I have a container.
#docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
689717b6ce94 magnetikonline/html5validator "/usr/bin/supervisor 9 weeks ago Up 9 weeks 0.0.0.0:8888->8888/tcp, 0.0.0.0:8080->80/tcp validator
Answer the question
In order to leave comments, you need to log in
More or less like this. I'm writing from memory, no need to copy-paste it, but you need to read the man page for each of the commands.
docker commit validator magnetikonline/html5validator
docker save magnetikonline/html5validator > /tmp/validator.tar
scp /tmp/validator.tar [email protected]:/tmp/validator.tar
---
docker load < /tmp/validator.tar
docker run validator magnetikonline/html5validator
I can’t understand if I transfer the image, then after all, all the changes that were made to the container will not be transferred.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question