You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a container running with tty=true
When i run docker.DockerContainer.log() with tail>1, the output i get is broken.
When i run len() on the list output im getting different results.
When i try to iterate on the list the output is also broken.
There is no such problem if i run the container with tty=false.
How to reproduce
Run container with tty=true
docker = Docker()
container = await docker.containers.get(<container_name>)
result: list[str] = await container.log(stdout=True, stderr=True, tail=5)
print(len(result)) # different output every time
for i in result:
print i # getting broken output
Your environment
macOS
The text was updated successfully, but these errors were encountered:
Long story short
I have a container running with tty=true
When i run docker.DockerContainer.log() with
tail
>1, the output i get is broken.When i run len() on the list output im getting different results.
When i try to iterate on the list the output is also broken.
There is no such problem if i run the container with tty=false.
How to reproduce
Run container with tty=true
Your environment
macOS
The text was updated successfully, but these errors were encountered: