DOCKER(1)
π DOCKER(1) β docker-service-logs π
okay bestie, welcome to the docker-service-logs page from the Docker User Manuals. this is the part where we get the receipts β the logs β from a service or a task. let's go π«Ά
β¨ NAME β¨
docker-service-logs β Fetch the logs of a service or task
π¦ SYNOPSIS π¦
docker service logs [OPTIONS] SERVICE|TASK
like, you hand it a SERVICE or a TASK, you sprinkle in whatever OPTIONS you want, and it hands you back the tea. β
πΈ DESCRIPTION πΈ
Fetch the logs of a service or task
that's it, that's the whole job. it's giving "just tell me what happened" and honestly? iconic. π
π OPTIONS π
--details[=false]β Show extra details provided to logs. default isfalse, so you're not getting the bonus lore unless you ask for it.-f,--follow[=false]β Follow log output. it just... keeps going. stays with the output like a loyal bestie. defaultfalse.--no-resolve[=false]β Do not map IDs to Names in output. you get the raw IDs, no glow-up into pretty names. defaultfalse.--no-task-ids[=false]β Do not include task IDs in output. defaultfalse.--no-trunc[=false]β Do not truncate output. nothing gets chopped. full sentences only. defaultfalse.--raw[=false]β Do not neatly format logs. messy on purpose, no filter. defaultfalse.--since=""β Show logs since timestamp (e.g."2013-01-02T13:23:37Z") or relative (e.g."42m"for 42 minutes). default is""so it's not holding anything back.-n,--tail="all"β Number of lines to show from the end of the logs. default is"all"because we do not gatekeep. π-t,--timestamps[=false]β Show timestamps. defaultfalse, so turn it on if you wanna know when everything went down.
π SEE ALSO π
go read that one too, they're a set. matching friendship bracelets fr fr. π
okay that's the whole page bestie!! you're officially fluent in service logs. mwah π
this lil manual page came to you courtesy of the Docker Community, and it's dated Oct 2026. slay, periodt, and happy logging!! β¨ππ
π¦ where this page comes from
- alpine 3.24: docker-doc 29.9.2-r0 Β· Apache-2.0
- fedora 43: docker-cli 29.8.2-2.fc43
- fedora 43: docker-cli 29.9.2-2.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT
- fedora 44: docker-cli 29.8.2-2.fc44
- fedora 44: docker-cli 29.9.2-2.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT
- opensuse-leap 16.0: docker 29.7.2_ce-160000.8.1 Β· Apache-2.0
- opensuse-leap 16.0: docker 29.7.2_ce-160000.8.1 Β· Apache-2.0
- opensuse-leap 16.0: docker 29.7.2_ce-160000.8.1 Β· Apache-2.0
- opensuse-leap 16.0: docker 29.7.2_ce-160000.8.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms