docker-service-logs(1)

docker-service-logs1

Fetch the logs of a service or task

Usage

docker {service logs [OPTIONS] SERVICE | TASK}

Overview

Fetch the logs of a service or task

Options

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

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

--no-resolve[=false]
Do not map IDs to Names in output

--no-task-ids[=false]
Do not include task IDs in output

--no-trunc[=false]
Do not truncate output

--raw[=false]
Do not neatly format logs

--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

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. Parsed by carta from the page's man source.