aio-libs / aiodocker

Python Docker API client based on asyncio and aiohttp
Other
427 stars 97 forks source link

Running docker exec on python3.12 fails #832

Closed matan1008 closed 9 months ago

matan1008 commented 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())

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

matan1008 commented 9 months ago

The issue is solved in version 3.9.1 of aiohttp