docker save code example
Example 1: copy docker image from one machine to another
docker load -i <path to image tar file>
Example 2: copy docker image from one machine to another
docker save -o <path for generated tar file> <image name>
Example 3: commit container to image
sudo docker commit [CONTAINER_ID] [new_image_name]
Example 4: docker commit
docker commit CONTAINER_ID CONTAINER_NAME:TAG
Example 5: docker save
docker save -o fedora-all.tar fedora