Docker ~ Use of save and load, dockersaveload
Back to directory
If there is no private repository, we can use the save and load methods when placing the local image on another server for execution. The former is used to save the image as a tar file, the background restores an image from a tar file, which is very convenient for our developers! The following describes how to implement the above process.
Docker images check the local image
Docker save 1316871b180b-o/root/dockerfile/loggermanager1.0.tar
Save the above loggermanager image as a tar file. Note that if the directory does not exist, you need to create it in advance. docker will not create the directory for you.
Use the xtfp tool to download and copy the file to the corresponding server.
Load your tar file on the external server and restore it to the docker list.
Then, use docker images to view the new image you have loaded.
Small function, big purpose!
Back to directory