I have a docker container which keeps restarting
Name Command State Ports
--------------------------------------------------------------------------------------------------------
wenotecloudstorage_flask_1 /bin/sh -c /usr/local/bin/ ... Restarting
wenotecloudstorage_nginx_1 nginx -g daemon off; Up 0.0.0.0:2083->443/tcp, 80/tcp
I wish I have an easy way, to look at error log on why it is restarting.
I read on Docker: Container keeps on restarting again on again
I try
docker logs --tail 50 --follow --timestamps wenotecloudstorage_flask_1
error from daemon in stream: Error grabbing logs: EOF
Is there an easy way, I can figure out the reason why a docker container keep restarting?