www.LinuxHowtos.org





DOCKER

Section: Docker User Manuals (1)
Updated: Jun 2025
Index Return to Main Contents

 

NAME

docke-servic-logs- Fetch the logs of a service or task

 

SYNOPSIS

docker service logs [OPTIONS] SERVICE|TASK

 

DESCRIPTION

Fetch the logs of a service or task

 

OPTIONS

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

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

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

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

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

-raw[=false]         Do not neatly format logs

-since=""         Show logs since timestamp (e.g. "201-0-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

 

SEE ALSO

docke-service(1)


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO