Difference between Docker-in-Docker (dind) vs mounting /var/run/docker.sock in CI/CD pipelines? #582
6mhkgfhb8j-blip
started this conversation in
General
Replies: 1 comment
|
The key difference is where the Docker daemon runs:
For trusted self-hosted CI, For untrusted workloads, neither is automatically safe — |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone 👋,
I am setting up a CI/CD pipeline (using GitHub Actions / GitLab CI) to build Docker images inside a containerized runner.
I see two main approaches using the official
dockerimage:docker:dindtag with--privileged.-v /var/run/docker.sock:/var/run/docker.sock.Could someone clarify:
docker.sockvs runningdind?Thanks in advance!
All reactions