when reading this:
https://docs.docker.com/userguide/dockervolumes/#backup-restore-or-migrate-data-volumes
Am I correct in the thinking that tar file they're referencing is still isolated in containers, and these examples aren't demonstrating anyway to preserve state after a machine loss?
Or is there a mental leap I'm not making with due to my ignorance?
So:
No, it is on pwd (on the host hard drive current working directory), since pwd was mounted as
/backup
in the ubuntu container where the tar occurred.An ls of the current working directory will list
backup.tar
, once the container ubuntu exits.