@
@
@Twitt2019-10-14 13:39:41
Docker
@Twitt, 2019-10-14 13:39:41

I don't understand volumes, how to understand this example?

There is an example:

volumes: 
     - /data/certs:/etc/nginx/certs

And then I understand that the /data/certs/ folder on my server refers to /etc/nginx/certs in the container?
Those. if I change some data in my /data/certs/, will they be automatically pulled into the container along the path /etc/nginx/certs?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
al_gon, 2019-10-14
_

No, they won't pull themselves up, they will be them.
If something in the container accesses /etc/nginx/certs it should be in /data/certs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question