Skip to content

Instantly share code, notes, and snippets.

@hytdsh
Last active October 9, 2023 08:04
Show Gist options
  • Save hytdsh/27bc4afa69f9a956d83bd131e114e578 to your computer and use it in GitHub Desktop.
Save hytdsh/27bc4afa69f9a956d83bd131e114e578 to your computer and use it in GitHub Desktop.
dind and dind-rootless on Rootfull Docker
root@rootfull:~# pwd
/root
root@rootfull:~# ls -l /var/run/docker.sock
srw-rw---- 1 root docker 0 Oct  5 20:15 /var/run/docker.sock
root@rootfull:~# cat tmp/dind/compose.yml
version: "3"

services:
  dind:
    image: docker:dind
    privileged: true
root@rootfull:~# cat tmp/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