Be there a machine that runs various docker projects. Each docker container is regularly replaced/stopped/started as soon as newer versions arrive from the build system.
How does a backup concept for such a machine look like?
Looking into similar questions [1] the correct path to a working backup/restore procedure is not immediately clear to me. My current understanding is something like:
Backup
/var/lib/docker/overlay2 from backup (to prevent backing up dangling and temporary stuff)docker prune daily to remove dangling stuffRestore
docker run to recreate containers. [1] How can I backup a Docker-container with its data-volumes?
[2] https://stackoverflow.com/a/48112996/1485527
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With