Docker Managing images Saving and loading Docker images

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

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.



Got any Docker Question?