Not able to see Docker container logs for a failed allocation

175 views
Skip to first unread message

Thomas Stringer

unread,
Sep 20, 2018, 9:58:58 PM9/20/18
to Nomad
Good afternoon, I hope all is well! Hopefully this is the right place to ask this question. I'm new to Nomad.

I've deployed a job to a Nomad cluster. The job status (retrieved with `$ nomad status <job_name>`) indicates that an allocation was created. When I run `$ nomad alloc status <alloc_id>` I see the error message:

Exit Code: 1, Exit Message: "Docker container exited with non-zero exit code: 1"

Makes sense, the container failed. But I can't seem to find any way to get the container/application logs. I ran `$ nomad alloc logs <alloc_id>` and `$ nomad logs <alloc_id>` and I get an empty return set.

In short, I have absolutely nothing to troubleshoot this failed container off of (it runs fine outside of Nomad. I have no doubt the container is appropriately failing, I just want to know why). What other way can I troubleshoot this issue? I'm at a bit of a loss at the moment, no doubt because of my lack of familiarity with Nomad at this point.

Thanks in advance for any and all help!
Thomas

Shantanu Gadgil

unread,
Sep 21, 2018, 2:24:53 PM9/21/18
to Nomad
Mayb3 this could help???

nomad logs -stderr <alloc_id>

Reply all
Reply to author
Forward
0 new messages