moby: OCI Runtime Error when 'userns-remap' enabled
This is a clone of https://github.com/docker/docker/issues/31037 since I do not have permissions to re-open that issue. Feel free to re-open it and close this one.
I’m running into the same issue as well. Docker 1.13.1 on CentOS 7.2.1511. I only get the error message whenever I set userns-remap
to default
in /etc/docker/daemon.json
. Without that option, containers run fine.
I also don’t see any memory/allocation errors in dmesg. The error looks the same otherwise though:
Feb 21 11:44:40 docker-1c360884 dockerd[3143]: time="2017-02-21T11:44:40.982416811-06:00" level=error msg="Handler for POST /v1.26/containers/6f716a8bcdb8a8098c1b04f82f4a7c7127f21bf667fdb457f04ac0a394f6a904/start returned error: oci runtime error: container_linux.go:247: starting container process caused \"process_linux.go:245: running exec setns process for init caused \\\"exit status 29\\\"\"\n"
Any other ideas? Rebooting does not solve the issue so far.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (7 by maintainers)
OK, found the problem -
sudo grubby --args="user_namespace.enable=1" --update-kernel="$(grubby --default-kernel)"
didn’t work, but running:sudo grubby --args="user_namespace.enable=1" --update-kernel=$(grubby --default-kernel)
worker fine (+ reboot of cause) Thank you for your support!