Let's pick the myapache2 image we created in the Create an image from a container recipe and export the image as a .tar file, as shown in the following code:
$ docker image save --output=myapache2.tar myapache2
The preceding command generates the myapache2.tar file, which can be imported as described in the next recipe.