paypal / dce-go

Docker Compose Executor to launch pod of docker containers in Apache Mesos.
Apache License 2.0
63 stars 48 forks source link

Log the reason for pod health check failure #45

Closed kmala closed 5 years ago

kmala commented 6 years ago

When ever DCE is killing a pod because of health check failure, it would be helpful to log the reason for health check failure by inspecting the container.

kkrishna commented 6 years ago

printing json State.Health would suffice:

docker inspect --format='{{json .State.Health}}'
vipragupta commented 6 years ago

docker inspect --format="{{json .State.Health }}" <container Name/ID>