Save and close Dockerfile. code example Example: docker pack image to file docker save -o fedora-all.tar fedora