Skip to content

Revert docker.sock path to /var/run/docker.sock - #2536

Merged
mumoshu merged 5 commits into
masterfrom
fix-docker-sock-path
Apr 27, 2023
Merged

mumoshu merged 5 commits into
masterfrom
fix-docker-sock-path

Conversation

@mumoshu

@mumoshu mumoshu commented Apr 25, 2023 •

Copy link
Copy Markdown
Collaborator

Starting ARC v0.27.2, we've changed the docker.sock path from /var/run/docker.sock to /var/run/docker/docker.sock. That resulted in breaking some container-based actions due to the hard-coded docker.sock path in various places.

Even actions/runner seem to use /var/run/docker.sock for building container-based actions and for service containers?

Anyway, this fixes that by moving the sock file back to the previous location.

Once this gets merged, users stuck at ARC v0.27.1, previously upgraded to 0.27.2 or 0.27.3 and reverted back to v0.27.1 due to #2519, should be able to upgrade to the upcoming v0.27.4.

Resolves #2519
Resolves #2538

@mumoshu
mumoshu force-pushed the fix-docker-sock-path branch from a295a33 to a627141 Compare April 26, 2023 00:26
@Link- Link- added the community Community contribution label Apr 26, 2023
@mumoshu

mumoshu commented Apr 27, 2023

Copy link
Copy Markdown
Collaborator Author

Thank you very much for your review @nikola-jokic! Merging.

@mumoshu
mumoshu merged commit 94c089c into master Apr 27, 2023
@mumoshu
mumoshu deleted the fix-docker-sock-path branch April 27, 2023 04:06
@navi86

navi86 commented Apr 27, 2023

Copy link
Copy Markdown

@mumoshu when v0.27.4 will be released ?

unpollito pushed a commit to DistruApp/actions-runner-controller that referenced this pull request Jan 21, 2026
Starting ARC v0.27.2, we've changed the `docker.sock` path from `/var/run/docker.sock` to `/var/run/docker/docker.sock`. That resulted in breaking some container-based actions due to the hard-coded `docker.sock` path in various places.

Even `actions/runner` seem to use `/var/run/docker.sock` for building container-based actions and for service containers?

Anyway, this fixes that by moving the sock file back to the previous location.

Once this gets merged, users stuck at ARC v0.27.1, previously upgraded to 0.27.2 or 0.27.3 and reverted back to v0.27.1 due to actions#2519, should be able to upgrade to the upcoming v0.27.4.

Resolves actions#2519
Resolves actions#2538
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Community contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dial unix /run/docker/docker.sock: connect: permission denied inside error Docker in docker actions no longer work in version v0.27.2 and v0.27.3

4 participants