I want to see only the latest because the Docker log has become too large

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

image.png

In other words

$ 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

I want to see only the latest because the Docker log has become too large
I want to simplify the log output on Android
I want to change the log output settings of UtilLoggingJdbcLogger
I want to narrow down the display of docker ps
I want to give edit and delete permissions only to the poster
[Ruby] I want to output only the odd-numbered characters in the character string
[Ruby] I want to extract only the value of the hash and only the key
I want to introduce the committee with Rails without getting too dirty
Development memo ~ I want to display only the first image posted multiple times ~
I want to get only the time from Time type data ...! [Strftime] * Additional notes
I want to see the contents of Request without saying four or five
I want to output the day of the week
I want to var_dump the contents of the intent
I want to truncate after the decimal point
I want to get the value in Ruby
I want to morphologically analyze the log in the DB and put it in the DB to classify messages 1
I tried using Docker because I don't want to pollute the local environment in Microsoft Teams tab development of MS Learn
[Java] I want to calculate the difference from the date
I tried to summarize the state transition of docker
I want to use fish shell in Laradock too! !!
I want to use ES2015 in Java too! → (´ ・ ω ・ `)
I want to judge the range using the monthly degree
I want to know the answer of the rock-paper-scissors app
I want to display the name of the poster of the comment
I want to dark mode with the SWT app
I want to apply ContainerRelativeShape only to specific corners [SwiftUI]
I want to call the main method using reflection
[Rough commentary] I want to marry the pluck method
I want to be aware of the contents of variables!
I want to return the scroll position of UITableView!
I want to add a delete function to the comment function
In Java, I want to trim multiple specified characters from only the beginning and end.