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.