Let's say you have a customer who has very strict policies that do not allow them to use images from the public domain. In such cases, you can share one or more images through tarballs, which can then later be imported on another system.
The docker image save command lets you save or export images as tarballs. The command syntax is as follows:
docker image save [-o|--output]=file.tar IMAGE [IMAGE...]
In this recipe, we will learn how to export an image using the docker image save command.