In the end, after many confusing guides and confusing tutorials, it worked for me that Docker, obviously, at the time of my writing on the look of overstated expectations , is:
- Save the docker image to the archive:
docker save image_name > image_name.tar - copy to another machine
- on another Docker machine, start the Docker download as follows:
cat image_name.tar | docker load
Export and import, as suggested in other answers, do not export ports and variables that may be required for your container to work. And you may experience things like "Command not specified" , etc. .... when you try to download it to another computer.
Thus, the difference between saving and exporting is that the saving command saves the entire image with history and metadata, and the export command only exports the file structure (without history or metadata).
It goes without saying that if you already have these ports occupied by the docker hypervisor that you are importing through some other docker container, you will be in conflict and you will have to reconfigure the open ports.
Aleksandar Pavić May 11 '18 at 22:17 2018-05-11 22:17
source share