We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
websocket doesn't filter by stream as args would suggest.
websocket
aiodocker/aiodocker/containers.py
Line 239 in f1dbdc3
async def websocket(self, **params): if not params: params = {"stdin": True, "stdout": True, "stderr": True, "stream": True} ...
ws_out = await proc.websocket(stdin=False, stdout=True, stderr=False, stream=True) ws_err = await proc.websocket(stdin=False, stdout=False, stderr=True, stream=True) # proc prints "foobar" to stdout msg = await ws_out.receive() # msg.data == b"foobar" msg = await ws_err.receive() # msg.data != b"foobar"
msg = await ws_err.receive() # msg.data == b"foobar"
Get/Build a docker image that prints anything to stdout. Then
docker = aiodocker.Docker() proc = await docker.containers.create_or_replace(name, config) ws_out = await proc.websocket(stdin=False, stdout=True, stderr=False, stream=True) ws_err = await proc.websocket(stdin=False, stdout=False, stderr=True, stream=True) await proc.start() print(await ws_err.receive())
Linux
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Long story short
websocket
doesn't filter by stream as args would suggest.aiodocker/aiodocker/containers.py
Line 239 in f1dbdc3
How to reproduce
Get/Build a docker image that prints anything to stdout. Then
Your environment
Linux
The text was updated successfully, but these errors were encountered: