save docker image code example
Example 1: docker pack image to file
docker save -o fedora-all.tar fedora
Example 2: docker save container to image
$ docker save [OPTIONS] IMAGE [IMAGE...]
Example 3: how to save and load the docker images
docker save -o <path for generated tar file> <image name>
docker load -i <path to image tar file>