March 2017
Beginner to intermediate
925 pages
18h 11m
English
To get a local copy of the image, we either need to pull it from the accessible registry or import it from the already exported image, as we saw in the earlier recipe. Using the docker import command, we import an exported image.
You need an accessible exported Docker image.
$ docker import URL|- [REPOSITORY[:TAG]]
Here's an example using the preceding syntax:
$ cat fedora-latest.tar | docker import - fedora:latest
Alternatively, you can consider the following example:
$ docker import http://example.com/example.tar example/image
The preceding example will first create an empty filesystem and then import the contents.
help option of docker ...Read now
Unlock full access