docker-logs(1)

docker-logs1

Fetch the logs of a container

Usage

docker logs [OPTIONS] CONTAINER

Overview

Alias for docker container logs.

Options

--details[=false]
Show extra details provided to logs

-f, --follow[=false]
Follow log output

--since=""
Show logs since timestamp (e.g. "2013-01-02T13:23:37Z") or relative (e.g. "42m" for 42 minutes)

-n, --tail="all"
Number of lines to show from the end of the logs

-t, --timestamps[=false]
Show timestamps

--until=""
Show logs before a timestamp (e.g. "2013-01-02T13:23:37Z") or relative (e.g. "42m" for 42 minutes)

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

From docker 1:29.9.2-1 in Arch Linux 2026-11-01. Also shipped by podman-docker. Parsed by carta from the page's man source.