docker save image to file 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
docker load -i