docker: Save Running Container and backup
In this quick guide we show how to backup a container.
We want to backup our docker container:
First make a commit from it:
docker commmit <container name>
Now we can save the container to a backup .tar
docker save <container> > backup.tar
Backing up docker containers make large tar files. But it does work well.
In our instance a single ghost instance with about 90+ articles makes a 900MB tar file.