Closed matan1008 closed 9 months ago
I run the following code:
exec_ = await container.exec(command) async with exec_.start(detach=False) as stream: print(await stream.read_out())
Expected behaviour: On Python 3.11 and before, the code prints the command output
Actual behaviour: On Python 3.12, the start function raises:
aiodocker.exceptions.DockerError: DockerError(500, "Cannot upgrade connection to vendored tcp protocol, the docker server has closed underlying socket. Status code: 101. Headers: <CIMultiDictProxy('Content-Type': 'application/vnd.docker.multiplexed-stream', 'Connection': 'Upgrade', 'Upgrade': 'tcp', 'Api-Version': '1.43', 'Docker-Experimental': 'false', 'Ostype': 'linux', 'Server': 'Docker/24.0.7 (linux)')>.")
I tried it on several docker images, including the standard mysql build
Ubuntu 22.04 Python 3.12 aiodocker version: 0.21.0 Docker version 24.0.7, build afdd53b
The issue is solved in version 3.9.1 of aiohttp
I run the following code:
Expected behaviour: On Python 3.11 and before, the code prints the command output
Actual behaviour: On Python 3.12, the start function raises:
How to reproduce
I tried it on several docker images, including the standard mysql build
Your environment
Ubuntu 22.04 Python 3.12 aiodocker version: 0.21.0 Docker version 24.0.7, build afdd53b