Docker tail -f from the end
The docker way:
docker logs -f --tail 10 container_name
The host way
$(docker inspect --format='{{.LogPath}}'
# Then tail -f the file
Ref
- https://stackoverflow.com/questions/42510002/docker-how-to-clear-the-logs-properly-for-a-docker-container
- https://stackoverflow.com/questions/52119832/how-to-tail-a-docker-log-from-the-current-position-in-the-log-without-seeing-the