DOCKER(1) Docker User Manuals DOCKER(1)

# [NAME](#NAME)

docker-logs - Fetch the logs of a container

# [SYNOPSIS](#SYNOPSIS)

**docker logs \[OPTIONS] CONTAINER**

# [DESCRIPTION](#DESCRIPTION)

Alias for **docker container logs**.

# [OPTIONS](#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)

# [SEE ALSO](#SEE_ALSO)

[**docker(1)**](/man/enterprise-packages/docker-cli-fips/docker.1)

Oct 2026 Docker Community

---

Document: docker-logs(1) from docker-cli-fips 29.9.2-r0 (Chainguard OS)
Source: https://github.com/docker/cli
