Answer the question
In order to leave comments, you need to log in
How to work with file system isolation in Docker?
I started getting acquainted with Docker, but I still don’t understand its principle of working with the file system.
Let's say I deployed nginx in Docker, so I need to throw /etc/nginx/ + /var/www/ + /etc/ssl/ (there are ssl keys for the site/sites).
And how to throw them correctly? Or is it completely different? Help to understand, please.
Answer the question
In order to leave comments, you need to log in
In order to mount a /home/User/WebApps/Site1/app
host machine directory to a directory /var/www/html
in a container, add the following to the container run command:
[...] -v /home/User/WebApps/Site1/app:/var/www/html [...]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question