Skip to content

Changes to windows compatability#2

Draft
Scott-Simmons wants to merge 1 commit into
apartresearch:mainfrom
Scott-Simmons:windows-compat
Draft

Changes to windows compatability#2
Scott-Simmons wants to merge 1 commit into
apartresearch:mainfrom
Scott-Simmons:windows-compat

Conversation

@Scott-Simmons

Copy link
Copy Markdown

See: https://github.com/docker/docker-py/blob/6e6a273573fe77f00776b30de0685162a102e43f/docker/transport/npipesocket.py#L180

Attempt to get compat working on windows

Unfortunately will hang with recv. Might be better to add a caveat in the README.

See: https://github.com/docker/docker-py/blob/6e6a273573fe77f00776b30de0685162a102e43f/docker/transport/npipesocket.py#L180

Attempt to get compat working on windows

Unfortunately will hang with recv. Might be better to add a caveat in the README.

@Scott-Simmons Scott-Simmons left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This PR will stay in draft, it is just up to demonstrate the incompatibility with windows (and a naive attempt at fixing)

Comment thread environment.py
Comment on lines +206 to +211
while b := read_func(1024):
print("This is b")
print(b)
container_response += b
print("This is the container response:")
print(container_response)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

It works for the first recv call but then hangs.

Probably b/c named pipes are different to sockets

Reference: https://github.com/docker/docker-py/blob/6e6a273573fe77f00776b30de0685162a102e43f/docker/transport/npipesocket.py#L29

image

@Scott-Simmons

Scott-Simmons commented Nov 17, 2025

Copy link
Copy Markdown
Author

Feel free to close this, its just a demonstration/example PR for issue #3

@esbenkc / @abra3607

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.

1 participant