If I mounted /mnt/container/ to docker container will data get wiped on restart?

29 Views Asked by At

I must have copied a docker compose file that had volumes mounted to:

    volumes:
      - /mnt/containers/outline/container-data/db:/var/lib/postgresql/data:Z

And after a host restart the database that was in there is empty. Isn't that mount to internal container file system from the host system?

Has the host restart wiped the data?

To see the data that was mounted to host file persist after host server restart. I do have some volumes that seam to be unassigned. Has docker created new volumes after restart and data is still on the host?

0

There are 0 best solutions below