I do not know if this is correct. But the below method worked for me. I tested with 30 Kolla Openstack Docker Images .
Why am I having a problem with docker save ?
As I said, I have 30 images of dockers. For now, I am saving with docker save -o <save image to path> <image name> . The total size is 15 GB, which is too large for a portable.
What I've done?
Long Story Short: I carefully copied the aufs and image folder.
Step 1:
In the machine you want to export: make sure that you have only images (which should be exported). Remove all containers that are started and stopped.
In the machine you want to import: make sure that you do not have images and containers.
Step 2: tar -cvf docker-images.tar /var/lib/docker/aufs /var/lib/docker/image It will close all your image layers and its database into a single tar file. Size is only 3 GB
Step 3: In the machine you want to import images,
tar -xvf docker-images.tar -C /var/lib/docker/ .
Now restart the docker. service docker restart .
source share