This is highly recommended. Treat the data directory as you would a database - in Docker you would generally put a database on a volume.
If your volume is inside a container - you can use docker cp $ID:/your/data/directory command to extract the data, or other options to find where the volume data is.
For more info check Docker docs section on Managing data in containers
Posted By Blogger to HDGEM at 2/03/2017 08:12:00 AM