-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
Ability to set custom path to Docker socket #757
Comments
From a quick look at the code, you can set DOCKER_HOST and the underlying client library will do the right thing. The only issue is that https://github.com/woodpecker-ci/woodpecker/blob/master/pipeline/backend/docker/docker.go#L39 hardcode the path. |
mscherer
added a commit
to mscherer/woodpecker
that referenced
this issue
Feb 8, 2022
I bypass this problem by setting:
|
mscherer
added a commit
to mscherer/woodpecker
that referenced
this issue
Feb 8, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clear and concise description of the problem
Set an environment variable to have the Docker client connect to a specific socket. This would enable people to use Podman as their runner (using the Docker compatibility socket). Currently, I have
/var/run/docker.socket
symlinked to the user's Podman socket/run/user/1000/podman.sock
, but this is an inelegant solution at best.Suggested solution
Add an environment variable (maybe
WOODPECKER_DOCKER_SOCKET
) that, if set, can set theaddr
value in the Docker client (https://github.com/moby/moby/blob/88bd93fa603870897400b7d1f0c836d554caf85e/client/client.go#L73)Alternative
A dedicated Podman runner, but that would be much more difficult to use than using the Podman compatibility layer.
Additional context
#85
Validations
The text was updated successfully, but these errors were encountered: