- Create the
subuidfile:
sudo nvim /etc/subuid
# content
myusername:1000:1
myusername:100000:65536- Create the
subgidfile:
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 dockerThat should do it. Happy dockering!
ps. User namespace doesn't work with privileged: true mode on containers.