Docker "oci runtime error: container_linux mkdir /proc" in CI
During container setup runc creates and mounts pseudo-filesystems like /proc. When it cannot - because the container lacks the privilege to mount procfs, or it is running nested without the needed capabilities - startup fails with an OCI runtime mkdir/mount error on /proc.
What this error means
A container fails to start with oci runtime error: container_linux.go: ...: mkdir /proc: operation not permitted or a related procfs mount failure.
docker
Error response from daemon: oci runtime error: container_linux.go:235: starting container process caused "process_linux.go:258: applying cgroup configuration for process caused \"mkdir /proc/sys/...: operation not permitted\""Common causes
Insufficient privileges to mount procfs
A heavily restricted runtime or dropped capabilities prevent runc from mounting /proc.
Nested containers without required capabilities
Running Docker-in-Docker or under a restricted sandbox can deny the procfs mount.
An incompatible or restricted seccomp/AppArmor profile
A profile that blocks the mount syscall trips this during setup.
How to fix it
Grant the privileges the runtime needs
- For dind-style workloads, run the daemon container privileged so it can mount procfs.
service config
services:
docker:
image: docker:27-dind
privileged: trueRelax the restricting security profile
- If a custom seccomp/AppArmor profile blocks the mount, use the default profile for the affected container.
Terminal
docker run --security-opt seccomp=unconfined myorg/app:ciHow to prevent it
- Run dind daemons with the privileges they require to mount procfs.
- Avoid over-restrictive seccomp/AppArmor profiles that block container setup.
Related guides
Docker "OCI runtime create failed" - Diagnose Container Start FailuresDecode Docker "OCI runtime create failed: runc ... starting container process caused ... executable file not…
Docker "failed to create task: cgroups: cannot find cgroup mount" in CIFix Docker "failed to create task ...: cgroups: cannot find cgroup mount destination" in CI - the container r…
Docker "error mounting ... operation not permitted" - Fix Mount Failures in CIFix Docker "OCI runtime create failed: error mounting ... operation not permitted" in CI - a bind mount denie…