Skip to content

Instantly share code, notes, and snippets.

@mrbongiolo
Created April 29, 2017 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrbongiolo/b2ba04eb18070da28dc49c0e72881cb7 to your computer and use it in GitHub Desktop.
Save mrbongiolo/b2ba04eb18070da28dc49c0e72881cb7 to your computer and use it in GitHub Desktop.
Enable docker user namespace on Solus

Steps on how to enable Docker User Namepsace on Solus

  1. Create the subuid file:
sudo nvim /etc/subuid

# content
myusername:1000:1
myusername:100000:65536
  1. Create the subgid file:
sudo nvim /etc/subgid

# content
myusername:1000:1
myusername:100000:65536
  1. Enable user namespace
sudo nvim /etc/docker/daemon.json

# content
{
	"userns-remap": "myusername"
}
  1. Restart docker
sudo systemctl restart docker

That should do it. Happy dockering!

ps. User namespace doesn't work with privileged: true mode on containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment