Sichern von Docker Images

Nachdem es dann und wann doch einmal nötig
ist die Docker Images zu sichern – z.B. um sie auf
einen anderen Rechner zu bringen, hier die Lösung:

Saving docker images locally

Sometimes I want to save a docker image and then use it on another computer without going through the hassle of uploading it to dockerhub. I found it a bit confusing to find a tutorial on how to do this easily, so here’s my notes:Docker images aren’t really stored as files that you can just grab and move to another computer (see here) – instead, you can save and then load the images. Like this:

You save the image as a tar archive, using docker save -o:

docker save -o archive.tar sheffien/rim

Then you load it (on a different computer) with

docker load -i archive.tar

and now it will show up in your docker images list:

docker images