aio-libs / aio-libs/aiodocker

bug in docker.DockerContainer.log() when container run with tty=true

Aberta
#890 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
537
Forks
118
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

## 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
```
docker = Docker()
container = await docker.containers.get()
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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.