Skip to content
Discussion options

You must be logged in to vote

Hi @schrom,

What you’re seeing is actually expected behavior with the dind (Docker-in-Docker) setup rather than a bug. Here’s why:

How dind works
When using containerMode: dind in a self-hosted GitHub Actions runner, your job container and the dind sidecar container are separate containers.
Any bind mounts you specify in your workflow are relative to the filesystem of the dind container, not the job container. That’s why your /tmp/secret.txt in the job container isn’t visible inside the dind container—the mount path effectively doesn’t exist there.
Behavior you observed
Creating the file inside the job container (echo hello > /tmp/secret.txt) doesn’t propagate to dind, so when you try to …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by schrom
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD other General topics and discussions that don't fit into other categories, but are related to GitHub Question Ask and answer questions about GitHub features and usage Actions Runner For issues and discussions related to the Actions Runner project Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community!
3 participants