Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Docker and CoreOS: Docker crashes when using user namespaces #1728
Docker crashes when using user namespaces. The problem is, that usermod does not support -vVwW options.
More information can be found here: moby/moby#29659
CoreOS 1185.5.0 same problem also in alpha channel CoreOS alpha (1262.0.0)
What hardware/cloud provider/hypervisor is being used to run CoreOS?
Docker starts and uses user namespaces.
Daemon does not start.
touch /etc/subuid /etc/subgid
Docker attempts to create the users/groups/files it needs by itself when
You can manually populate the files by doing something like:
The flag on the docker daemon would then have to be set to
The daemon at least launches correctly after doing that for me.
However, when I try to actually run a container I see:
I'm looking into this further to figure out exactly what's going wrong there and what's the best way to make using userns easier.
This issue is fixed by the following changes:
I've also written a regression test so that userns won't break again.
Thanks for reporting, the next alpha should contain all the above fixes (and the next stable should also work correctly if the subuid/subgid files are populated manually).