I’m trying to prepare a docker image to install on another machine, so thought that the following would work:
docker save -o filename.tar image1:version
Then copied the filename.tar to the other machine and executed the following:
docker import filename.tar image1:version
However when I ran the following after the import:
docker inspect image1:version
That it had lost all the meta data, such labels and entrypoints…
If this is not the expected behavior, what is that I’m missing?
If this is the expected behavior, then I noticed that the docker import has an -c option to Apply Dockerfile instructions to the create image however can see a way of extracting the Dockerfile instructions from an existing image. Any ideas?