Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for the docker deploy script to execute the reload cmd with the user root #5083

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

alex1702
Copy link

@alex1702 alex1702 commented Apr 9, 2024

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:

DEPLOY_DOCKER_CONTAINER_RELOAD_CMD="chmod 664 /opt/emqx/etc/certs/*.pem && /opt/emqx/bin/emqx stop"

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants