Option for the docker deploy script to execute the reload cmd with the user root #5083
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have a container running with an unprivileged user. As a result, customizing the file permissions via the reload cmd command does not work.
For example, I have configured the following:
For the chmod command to work, docker exec must be executed with the parameter -u root. And this is what I have added in this pull request for docker exec and the API call.
The option is called
DEPLOY_DOCKER_CONTAINER_RUN_AS_ROOT
and is false by default.