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 Rootless] Container fails to run when /proc hidepid=2 is set in fstab file #324

Open
ccpu opened this issue Nov 27, 2022 · 1 comment

Comments

@ccpu
Copy link

ccpu commented Nov 27, 2022

It appears that Docker rootless needs to see other processes in order to function properly. I encountered this problem while hardening a Linux machine. setting hidepid=2 will stop container to run. What is a workaround that still maintains the hidepid=2 option?

@jderriks
Copy link

already solved by someone: create docker.json file and add
{"exec-opts": ["native.cgroupdriver=cgroupfs"]}
use XDG_CONFIG_HOME env variable to point to that file if not present.

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

No branches or pull requests

2 participants