Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "${DOCKER_HOST}" when available instead of a hard-coded "/var/run" path for the Docker UNIX socket #34404

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michaelsafyan
Copy link
Contributor

@michaelsafyan michaelsafyan commented Aug 5, 2024

Description:

It is most common to run the Docker daemon as root, in which case the UNIX socket is indeed in /var/run; however, there are situations in which it may not be possible to run Docker as root. In those cases, the environment variable ${DOCKER_HOST} is used to indicate the location of the Docker unix socket. This fix aims to allow the use of the build system in environments where Docker is being run in an alternative deployment/location.

Testing:

Ran standard build and test with make in a context in which /var/run/docker.sock does not exist but in which ${DOCKER_HOST} was correctly defined; verified that unit tests pass.

Documentation:

Updated comments in the affected files. Uncertain if additional documentation changes are required.

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Aug 20, 2024
@michaelsafyan
Copy link
Contributor Author

Any possibility of getting a review?

@github-actions github-actions bot removed the Stale label Aug 31, 2024
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Sep 14, 2024
@michaelsafyan
Copy link
Contributor Author

Ping. Any possibility of getting this reviewed?

@github-actions github-actions bot removed the Stale label Sep 17, 2024
Copy link
Contributor

github-actions bot commented Oct 3, 2024

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants