Answer the question
In order to leave comments, you need to log in
How to properly manage access rights between docker container and host system?
Hello.
A little behind the times with docker, and ran into the following problem.
There is an assembled image for building applications in php, it takes two mappings of volumes, where to get the code from and where to build the application. When building an image, a builder user is created inside and assembly is carried out under it. But from the point of view of the external system, I get permission denied in the folder where the compiled code should be written from the container. I googled, but I really can not understand which way to go. Can anyone suggest what would be the best practice here?
Answer the question
In order to leave comments, you need to log in
Everything was decided by the coincidence of the UIDs of users in the container and in the host system
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question