If it is Docker that has been started up, logs will accumulate all the time, so
$ docker logs -f <container-name>
When outputting with the above command, it may take several minutes to reach the latest log. I want to see it quickly ... I checked by deleting the log, but when I was in trouble because I could not delete it well, I found the following information
$ docker logs -f --tail=500 <container-name>
You can see it quickly by adding ** --tail = 500 **
Reference: https://github.com/moby/moby/issues/24998#issuecomment-234941293
Recommended Posts