Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6136

How to get the last unexpected exit code of the docker container?

$
0
0

I use docker-compose to maintain a project, and set restart=always to all the docker service.

But my API host crashed twice today, I look through the logs docker logs -f <container-id>. No cue found about the crash reason.

The logs guide me the main process was killed then restarted.

how to get the last unexpected exit code ?

Thanks.


Viewing all articles
Browse latest Browse all 6136

Trending Articles