Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
userns doesn't work on ubuntu-xenial #769
Comments
iavael
commented
Apr 24, 2016
•
|
Same problem on my host with docker 1.10.3-cs2 after upgrade to xenial (4.4.0-21-generic) mount(2) of mqueue returns EPERM with --ipc=host and EBUSY without. |
|
I suspect a bug in the Xenial kernel as there is no such issue on Fedora 23 with 4.4.6 kernel or rawhide that tracks upstream kernel 4.6.0.rc*. |
|
I agree that it's almost certainly a Xenial-specific kernel bug. Tumbleweed doesn't have this problem with its stock kernel (4.5.x) and I compiled 4.6-rc5 yesterday to play with cgroup namespaces and that didn't have this problem either. |
iavael
commented
May 1, 2016
|
I can start lxd userns containers on xenial and /dev/mqueue is mounted inside them successfully, so somehow this bug is specific to runc
|
iavael
commented
May 1, 2016
|
And this is what I get in docker: without --ipc=host
and with --ipc=host
|
|
@iavael Can you reproduce this just with runc and no overlay rootfs (to rule out overlayfs)? |
iavael
commented
May 2, 2016
|
Did it with runc 0.1.1 from github releases
Tested on exported and chown-ed uid/gid+65535 docker busybox image and default config.json with added userns and uid/gidmapping sections. |
iavael
commented
May 2, 2016
•
|
changing mqueue mount section to {
"destination": "/dev/mqueue",
"type": "bind",
"source": "/dev/mqueue",
"options": [
"rbind"
]
},resolves (more likely kludges) the problem in runc in exchange for posix mq isolation |
sdurrheimer
commented
May 13, 2016
|
Any news on that ? |
mrunalp
referenced this issue
in moby/moby
May 13, 2016
Open
docker --userns-remap @ubuntu 16.04 fails #22633
|
I did some digging and suspect this ubuntu specific commit http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/commit/fs/super.c?id=b6500fda5c9f2402830000d9f992861e5a91231b |
|
@mrunalp Yeah, it looks like the problems with |
CRTX
commented
Aug 11, 2016
|
It's been quite a few months. No update on this? |
iavael
commented
Aug 12, 2016
|
@CRTX bug was fixed in linux-image-4.4.0-25-generic kernel |
|
@iavael Can you add some links so we can close this issue? |
iavael
commented
Aug 12, 2016
•
|
@iavael Thanks, docker/docker#22633 is still open I think there is a different issue, close this now. |
tonistiigi commentedApr 21, 2016
from master:
rootfs_linux.go:53: mounting "/dev/mqueue" to rootfs "/home/vagrant/a/rootfs" caused "device or resource busy"from docker v1.11(slightly older runc):
docker: Error response from daemon: rpc error: code = 2 desc = "oci runtime error: could not synchronise with container process: device or resource busy".