Answer the question
In order to leave comments, you need to log in
How to create files from docker to access them on the host?
I work through docker-compose. I go into the container, run php artisan make:job SomeJob, the file is created from under the root. How can I make the generated files non-root and editable on the host?
Answer the question
In order to leave comments, you need to log in
You can run containers as the desired user via the user parameter (can be specified in docker-compose.yml)
https://docs.docker.com/engine/reference/run/#user
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question