I have the following scenario: Host with running docker on it and several containers. Actually i try to create a backup solution for these containers. My actual approach is:
- Commit containers
docker -save
stop all running containers
- make backups of /var/lib/docker/volumes/ with borg
- start all containers
Now i have the following problem: if i would like to restore the containers, i have to know their entrypoints for volumes and so on. Because with docker save i only got the image itself.
Is there a way, to export these informations from a running system? My goal is to easily restore all containers with their volumes and have the possibility to easily do backups of them.
Host is debian9, 64 bit. Backup target is a local NAS
Thanks Regards
docker inspect
output and save it to a file. It won't give you an immediate recovery solution, but all the information you need to start the container again is there.