rootless@rootless:~$ ls -l /var/run/user/1001/docker.sock
srw-rw---T 1 rootless 166532 0 Oct 9 17:55 /var/run/user/1001/docker.sock
rootless@rootless:~$ cat dind/compose.yml
version: "3"
services:
dind:
image: docker:dind
privileged: true
rootless@rootless:~$ cat dind-rootless/compose.yml
version: "3"
services:
dind-rootless:
image: docker:dind-rootless
privileged: true
environment:
- DOCKER_HOST=unix:///var/run/user/1000/docker.sock