how to save docker image as a dockerfile in docker container code example Example: docker pack image to file docker save -o fedora-all.tar fedora