-
Notifications
You must be signed in to change notification settings - Fork 4
Developers: Docker Persistent Storage Volumes
If files between the host and docker volumes are not persisting, for example if competition images disappear when running any docker management commands like up
, build
, restart
, then there is an issue with your Docker volumes setup.
Do not used named volumes unless you set the volume up as a mount or link style volume. Named volumes not associated with a file location/directory on the host will have issues.
Always use explicit source/destination volume declarations in the docker-compose and docker file, otherwise you will be at risk for losing your data! IE: If you have named volumes that are not mount/link style, it will be very hard to find where Docker actually stores the data, and you will need to manually copy files from the VM Docker Container to the actual host, and then back after updating your volume settings.