G
G
ganjo8882019-07-10 17:49:10
Docker
ganjo888, 2019-07-10 17:49:10

How to give write permission to docker folder?

there was a need to create a separate folder (folder) directly in the docker container.
there is a docker-compose.yml file, the question is how and where can I set write permissions to this folder (folder)?
Should I create a dockerfile, if so, how to reference it in docker-compose.yml ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-07-10
@ganjo888

task is not clear.
do you need to create a folder while working or when creating a container?
if the first - well, create, what's the problem.
if the latter, then you will have to add the appropriate directive to the Dockerfile and rebuild the container.
or in general the third option, do you need to fumble a certain folder between several containers?
then in docker-compose.yml you need to describe the joint volume

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question