I can't run docker commands as my own user. But I know that the service is running because I can run commands as sudo:
$ docker ps
Cannot connect to the Docker daemon at unix:///run/user/1000/docker.sock. Is the docker daemon running?
$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
(snip) (snip) (snip) 13 days ago Up 2 hours (healthy) 9000/tcp (snip)
I am successfully running a few containers, and they each work, but I have another not listed in 👆 that I need to run as my own user.
I am part of the docker group:
$ groups
docker www-data video tim
I'm not sure what else to check. I do have this:
$ echo $DOCKER_HOST
unix:///run/user/1000/docker.sock
Also:
$ uname -r
5.4.0-65-generic
$ docker --version
Docker version 19.03.6, build 369ce74a3c
This is on Ubuntu 18.04.5 LTS
dockergroup. And as mentioned in the question, I'm already a member of that group. Runningdocker-rootless.shyields[rootlesskit:parent] error: failed to setup UID/GID map: newuidmap 25367 [0 1000 1 1 100000 65536] failed: newuidmap: Target process 25367 is owned by a different user: uid:1000 pw_uid:1000 st_uid:1000, gid:999 pw_gid:1000 st_gid:999dockergroup