Ok,
So think I have misread the docs
Looks like if you do an docker import, it flattens all the layers… So also removes all the of the following:
- ENV
- ENTRYPOINT
- LABEL
- VOLUME
Even after using docker import -c to put these, it would appear that the ContainerConfig elements when running the inspect are not set.
However after reading the documentation again, docker load does not flatten the images. Thus maintains all the configuration
But it doesn’t allow you to change the image name, but I suppose I can do this prior to saving the image to disk.