Skip to content

Conversation

@Scott-Simmons
Copy link

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.
Copy link
Author

@Scott-Simmons Scott-Simmons left a comment

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 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
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
Copy link
Author

Scott-Simmons commented Nov 17, 2025

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