Low Orbit Flux Logo 2 F

Docker How To Backup Container

It is possible to backup a docker container. We show you how this can be done here.

First commit your container to an image:



docker commit nervous_meitner

Then tag the image that you just created:



docker tag 314b3d1fd34d myrepo/myapp1

You can backup by pushing to Docker Hub:



docker push myrepo/myapp1

And pulling it back down later.



docker pull myrepo/myapp1

Or you could save it to disk:



docker image save -o test.tar myrepo/myapp1

And restore from disk:



docker image load -i test.tar

If you have any external volumes you will probably want to back those up. See this document for instructions on doing that:

More on importing/exporting/saving/loading here: