Deploying a docker container to store stored volumes

In my dev machine, I have an application container with the installed code directory fe -v / host / code: / app / code

What is the best practice for deploying such containers for production? How to pack this mount binding inside the container so that in prod I could only do “docker loading” ... and it all worked.

+4
source share
1 answer

Best practice is to use a data volume container (a container that is only docker create'd, not docker runbecause it does not start any process)
See “ Creating and installing a data volume container

, , -, .

+5

Source: https://habr.com/ru/post/1622197/


All Articles