docker / docker-install

Docker installation script
https://get.docker.com
Apache License 2.0
2.33k stars 769 forks source link

[Docker Rootless] Container fails to run when /proc hidepid=2 is set in fstab file #324

Open ccpu opened 1 year ago

ccpu commented 1 year ago

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 commented 4 days ago

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.