Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
`docker service logs` hangs with non-json logging driver #28793
Service logs only works with
Describe the results you received:
Docker cli hangs
Describe the results you expected:
Error saying that
Additional environment details (AWS, VirtualBox, physical, etc.):
Docker for AWS
@thaJeztah it seems like it hasn't been fixed yet.
Did I miss something?
However, I don't know if I have access to a system that supports nonstandard log drivers, and I don't know how hard it is to set that up. If it's a quick thing, could you verify on master that this hang is resolved?
If it's not a quick thing, would you let me know and I'll spend the time verifying this myself?
The problem I fixed there is that logs would hang if the agent had no log messages to report, which I believe is what was causing this hang. The fact that no error is reported is a separate issue.
@dperny I'm only testing on Docker for AWS which uses a non-standard logging driver. I cannot easily switch out the docker daemon, however. Creating a machine with docker-machine and switching the logging driver should be simple though: https://docs.docker.com/engine/admin/logging/overview/#configure-the-default-logging-driver-for-the-docker-daemon