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

Fix docker daemon on Windows trying to use https instead of http for named pipes #2666

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

brbayes-msft
Copy link
Contributor

@brbayes-msft brbayes-msft commented Dec 30, 2024

This corrects an issue where previously connections to the Docker daemon on Windows would attempt to add a TLS config, changing the scheme to https instead of http, and breaking the client. This changes named pipes (returned as npipe by the docker client library) to mimic the behavior of unix sockets.

I tried to add tests for this case, but the base transport and scheme variables are not exposed from the docker client, so there wasn't a clear way to test this change. I have tested this locally on a Windows machine, ensuring that accessing the daemon works after this change.

Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mtrmac mtrmac merged commit 75e4f15 into containers:main Jan 2, 2025
10 checks passed
@brbayes-msft brbayes-msft deleted the brbayes/npipe-fix branch January 2, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants