'Copying Docker volumes to server

I am still new to Docker but progressing through the Pluralsight learning path and lots of articles. I have learned to use volumes to persist data when containers stop and restart.

My question is how should I deploy volumes or is this bad design to have a volume dependency?

I do my local development and run things locally and all is great. I push to Docker Hub and pull down to my staging server. All working quite nicely EXCEPT emails.

The emails fail because the email templates are stored in a volume.

I am using Ubuntu with Solar-Putty so I can easily ftp the files into the proper volume location on the staging server.

or

I could ftp my entire volume to the Ubuntu staging server but in so doing do I corrupt some sort of Docker meta data unique id?

What is the best way to approach this dev ops process?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source