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

docker stack privileged issue #11525

Closed
shencangsheng opened this issue Oct 12, 2020 · 2 comments
Closed

docker stack privileged issue #11525

shencangsheng opened this issue Oct 12, 2020 · 2 comments

Comments

@shencangsheng
Copy link

I configure the privileged : true configuration in stack.yml and docker stack deploy -c stack.yml warns "Ignoring unsupported options: privileged ", I'd like to know how to get true root permissions for the container in stack.yml.

@thaJeztah
Copy link
Member

The container can run as root (and many containers do so by default); the privileged option controls other security options (effectively, using privileged: true or --privileged disables all security options on a container, therefore making it a security risk to run it in a swarm setup.

More discussion on this can be found in moby/moby#24862 and moby/swarmkit#1030

Given that this issue is not related to the documentation, I'll close, but feel free to continue the conversation

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

@docker docker locked and limited conversation to collaborators Mar 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants
@thaJeztah @docker-robott @shencangsheng and others