New issue
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
Doesn't work with docker-compose #771
Comments
Image: Which is running 3.6.6 Have tried it on two different computers and in both MacOS Terminal and VS Code Terminal. |
The problem is not with Docker itself, but Docker Compose. To reproduce the problem, you need to first write a The problem is not present if you just use Docker itself with the |
thanks @sepbot - is this something that's been reported on the docker-compose repo? |
I'm running into the same issue, are there any known workarounds or fixes for getting tqdm to work in docker compose? |
Did anyone manage to get the progress bar in the docker-compose. Any workaround? |
Use |
Just using |
You're right, |
This workaround works fine too. For those who want to keep using docker compose up it = tqdm(total=len(arr))
for e in arr:
it.update(1)
print(it) |
This command can help if you are running in detach mode: docker compose up -d
docker attach --sig-proxy=false [container-name] https://docs.docker.com/reference/cli/docker/container/attach/ You must set |
Then in terminal I see nothing until the loop has finished, and it just prints:
debug: 100% 50/50 [00:05<00:00, 9.81it/s]
My docker compose file has
tty: true
andos.isatty(sys.stdout.fileno())
returns trueThe text was updated successfully, but these errors were encountered: