docker-logs

Print container logs.

TLDR

Print logs from a container

>_ docker logs [container_name]
copy

Print logs and follow them

>_ docker logs -f [container_name]
copy

Print last 5 lines

>_ docker logs [container_name] --tail [5]
copy

Print logs and append them with timestamps

>_ docker logs -t [container_name]
copy

Print logs from a certain point in time of container execution (i.e. 23m, 10s, 2013-01-02T13:23:37)

>_ docker logs [container_name] --until [time]
copy

Copied to clipboard
free 100$ digital ocean credit