- Create the
subuid
file:
sudo nvim /etc/subuid
# content
myusername:1000:1
myusername:100000:65536
- Create the
subgid
file:
sudo nvim /etc/subgid
# content
myusername:1000:1
myusername:100000:65536
- Enable user namespace
sudo nvim /etc/docker/daemon.json
# content
{
"userns-remap": "myusername"
}
- Restart docker
sudo systemctl restart docker
That should do it. Happy dockering!
ps. User namespace doesn't work with privileged: true
mode on containers.