.nh .TH "DOCKER" "1" "Feb 2026" "Docker Community" "Docker User Manuals" .SH NAME docker-service-logs - Fetch the logs of a service or task .SH SYNOPSIS \fBdocker service logs [OPTIONS] SERVICE|TASK\fP .SH DESCRIPTION Fetch the logs of a service or task .SH OPTIONS \fB--details\fP[=false] Show extra details provided to logs .PP \fB-f\fP, \fB--follow\fP[=false] Follow log output .PP \fB--no-resolve\fP[=false] Do not map IDs to Names in output .PP \fB--no-task-ids\fP[=false] Do not include task IDs in output .PP \fB--no-trunc\fP[=false] Do not truncate output .PP \fB--raw\fP[=false] Do not neatly format logs .PP \fB--since\fP="" Show logs since timestamp (e.g. "2013-01-02T13:23:37Z") or relative (e.g. "42m" for 42 minutes) .PP \fB-n\fP, \fB--tail\fP="all" Number of lines to show from the end of the logs .PP \fB-t\fP, \fB--timestamps\fP[=false] Show timestamps .SH SEE ALSO \fBdocker-service(1)\fP