docker save -o ubuntu.latest.tar ubuntu:latest
This command will save the ubuntu:latest
image as a tarball archive in the current directory with the name ubuntu.latest.tar
. This tarball archive can then be moved to another host, for example using rsync
, or archived in storage.
Once the tarball has been moved, the following command will create an image from the file:
docker load -i /tmp/ubuntu.latest.tar
Now it is possible to create containers from the ubuntu:latest
image as usual.