Closed ghost closed 4 years ago
I figured out cause of this problem. It is necessary to pass explicit -stderr
option and it is quite confusing. At least it is non-conformant with docker logs
behaviour.
nomad alloc logs -stderr -f <alloc_id>
Hi @Genesis0x1b! You're right that it doesn't quite match docker logs
, but it is intentional. Not co-mingling stdout and stderr lets you pipe nomad alloc logs
to other unix processes, and in general makes log shipping more tunable for production workloads.
Hi @tgross ! Thank you for your response. ok, it makes sense.
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
dnsproxy.nomad:
Dockerfile for dnsproxy image:
No logs displayed with the following command:
However, logs are available using direct docker command: