Skip to content

Instantly share code, notes, and snippets.

@hytdsh
Created October 9, 2023 09:01
Show Gist options
  • Save hytdsh/af2fca77cf16584827de7da4f81847f9 to your computer and use it in GitHub Desktop.
Save hytdsh/af2fca77cf16584827de7da4f81847f9 to your computer and use it in GitHub Desktop.
dind and dind-rootless on Rootless Docker
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment