Docker image/container packaging and copying

Packaging and copying of Docker image container

1. Image file packaging

docker save -o /root/tomcat8.tar mytomcat Specify the location and format of the packaged image file name

2. Copy the packaged image file

scp tomcat8.tar 192.168.109.130:/root

3. Import the image

docker load -i /root/tomcat8.tar

4. Packaging of the container

docker exeport -o /root/t1.tar t1

5. Import the container

docker import t1.tar mytomcat:lastest

Guess you like

Origin blog.csdn.net/Guesshat/article/details/109442182