Docker image history at import from tar Docker image history at import from tar docker docker

Docker image history at import from tar


Instead of import use load

docker load -i <exported.tar>

This will load all layers. When you do

docker import exported.tar image:tag

This will load all file system in a single layer of the image. If you need to add a CMD to it you can use

docker import -c 'CMD ["/bin/bash"]' exported.tar image:tag

So I would suggest using load instead of import.