March 2017
Beginner to intermediate
925 pages
18h 11m
English
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 images through tarballs, which later can be imported on another system. In this recipe, we will see how to do that using the docker save command.
Pull or import one or more Docker images on the Docker host.
$ docker save [-o|--output=""] IMAGE [:TAG]
For example, to create a tar archive for Fedora, run the following command:
$ docker save --output=fedora.tar fedora
If the tag name is specified with the image name we want to export, such as fedora:latest, then only the layers related to that tag will ...
Read now
Unlock full access