Журналы хвоста Docker
docker logs -f --tail 100 container-name
Cheerful Cat
docker logs -f --tail 100 container-name
docker-compose logs -t -f --tail <no of lines>
docker logs -f --tail 10 container_name
docker logs -f container-id
docker run --name test -d busybox sh -c "while true; do $(echo date); sleep 1; done"
$ date
Tue 14 Nov 2017 16:40:00 CET
$ docker logs -f --until=2s test
Tue 14 Nov 2017 16:40:00 CET
Tue 14 Nov 2017 16:40:01 CET
Tue 14 Nov 2017 16:40:02 CET
docker logs [OPTIONS] CONTAINER