Skip to content

Glossary: Docker Basics

docker logs

Also written: --tail, -f

Shows what a container's program has printed. `--tail N` shows the last lines and `-f` follows new output until Ctrl+C.

Where the book teaches it

Related terms

Logsdocker exec2>&1