After auto restart my docker container docker logs <container> shows logs only from start new container. How to know why my container was restared?
docker logs <container> Also I check logs within container, but nothing found
You could use docker events.
Some examples:
Get latest 10 minutes events
docker events --since '10m'
Get events for specific container:
docker events -f 'container=id'
Reference: https://docs.docker.com/engine/reference/commandline/events/