Skip to content

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

Merged
mtrmac merged 1 commit intocontainers:mainfrom
brbayes-msft:brbayes/npipe-fix
Jan 2, 2025
Merged

Fix docker daemon on Windows trying to use https instead of http for named pipes#2666
mtrmac merged 1 commit intocontainers:mainfrom
brbayes-msft:brbayes/npipe-fix

Conversation

@brbayes-msft
Copy link
Copy Markdown
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.

Signed-off-by: Brandyn Bayes <brbayes@microsoft.com>
Copy link
Copy Markdown
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
@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