container.logs seems to no stream logs when the container is started without the tty option
Author: gpolaertCreated Jan 17, 2017Updated Aug 15, 2026
I'm not sure if it's an issue.
I try to stream container logs using the docker-py client.
I noticed I have no logs when my container is started without -t.
logs = container.logs(stream=True, follow=True, stdout=True, stderr=False, tail=0)Even if I can show them using this command docker logs -f <container>
Source: docker/docker-py