save docker 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...]
docker save -o fedora-all.tar fedora
$ docker save [OPTIONS] IMAGE [IMAGE...]