L
L
littleguga2016-07-11 18:11:20
System administration
littleguga, 2016-07-11 18:11:20

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

2 answer(s)
D
Dmitry Vapelnik, 2016-07-12
@littleguga

In order to mount a /home/User/WebApps/Site1/apphost machine directory to a directory /var/www/htmlin a container, add the following to the container run command:

[...] -v /home/User/WebApps/Site1/app:/var/www/html [...]

S
Sanes, 2016-07-11
@Sanes

Docker hole. There is no isolation there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question