February 3, 2017

[HDGEM] How to back up data of Docker container

If you bind mount in a volume - you can simply back up that directory at any time.

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. 

Note that some symlinks on some OSes may be converted to copies

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
Post a Comment

Featured Post

Updated Coupons / promo codes for Google Apps for Work / Business

To redeem: 1. Sign up for Google Apps   2. Go to your billing settings  3. Choose your payment plan  4. Enter your promo code ...