Repository navigation
Use Docker socket via shared emptyDir instead of TCP/mTLS - #2324
Merged
Merged
Conversation
milas
requested review from
a team,
mumoshu,
nikola-jokic and
toast-gear
as code owners
February 25, 2023 16:51
Contributor
Author
|
I'm successfully running jobs using this without needing explicit Docker context setup. |
mumoshu
reviewed
Feb 26, 2023
1 of 2 tasks
mumoshu
force-pushed
the
docker-socket
branch
4 times, most recently
from
March 26, 2023 01:08
585d67f to
38b4b08
Compare
Collaborator
|
@milas Hey! Sorry for the radio silence. Testing this locally and fixing failing unit tests took a bit more time than I expected. I think this is now ready to be merged, and I'll merge this in a day or two. |
By default, the `docker:dind` entrypoint will auto-generate mTLS certs and run with TCP on `0.0.0.0`. This is handy for accessing the running Docker Engine remotely by then publishing the ports. For the runner, we don't need (or want) that behavior, so a Unix socket lets us rely on filesystem permissions. This also has the benefit of eliminating the need for mTLS, which will speed up Pod start slightly (no need to generate CA & client certs), and will fix actions#893 and generally improve compatibility with apps that interact with the Docker API without requiring a custom Docker context to be initialized.
mumoshu
approved these changes
Mar 28, 2023
Collaborator
|
Merged. Thank you so much for your contribution, @milas! |
7 tasks done
This was referenced Aug 23, 2023
unpollito
pushed a commit
to DistruApp/actions-runner-controller
that referenced
this pull request
Jan 21, 2026
…tions#2324) Co-authored-by: Yusuke Kuoka <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By default, the
docker:dindentrypoint will auto-generate mTLS certs and run with TCP on0.0.0.0. This is handy for accessing the running Docker Engine remotely by then publishing the ports. For the runner, we don't need (or want) that behavior, so a Unix socket lets us rely on filesystem permissions.This also has the benefit of eliminating the need for mTLS, which will speed up Pod start slightly (no need to generate CA & client certs), and will fix #893 and generally improve compatibility with apps that interact with the Docker API without requiring a custom Docker context to be initialized.