docker: subuids subgids

Docker error if your id is not included in the subuid & subgid files

$ docker container ls
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
ERRO[0000] cannot find mappings for user kewrunner: No subuid ranges found for user "kewrunner" in /etc/subuid
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

The quick fix is to look up your id in /etc/passwd then

$ sudo usermod --add-subuids 1000-1001 kewrunner
$ cat /etc/subuid
kewrunner:1000:2
$ sudo usermod --add-subgids 1000-1001 kewrunner

Now run the container

RELATED POST

Virtual Machine Manager: Error starting domain

Starting up the KVM error occurred Error starting domain: Requested operation is not valid: network 'default' is not active Locate…

Git Commands

How to initialize a Git repo: Everything starts from here. The first step is to initialize a new Git repo…

Lab Hack: Raspberry Pi running VMWare ESXi

As strange as the title sounds, yes I am running VMWare ESXi on a Raspberry Pi 4 Model B (4GB)…

Lab Hack: Ubuntu openssh-server and passwordless authentication

While setting up the lab for a docker swarm training module I decided to spin up a few vms in…