docker / docker/docker-install

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

Open
#324 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
3.2k
Forks
863
Avg merge
3h 15m
Merged PRs (30d)
2

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named in the issue. Start by reproducing rootless Docker with hidepid=2 configured in fstab, then investigate the process-visibility requirement and document a workaround that preserves hidepid=2.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, linux
Domain
devops, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.