CmdID / docker / docker service
docker service logs
Fetch the logs of a service or task Docker CLI reference
9 options Its page in the Docker CLI reference
Options
--detailsShow extra details provided to logs--follow, -fFollow log output--no-resolveDo not map IDs to Names in output--no-task-idsDo not include task IDs in output--no-truncDo not truncate output--rawDo not neatly format logs--sinceShow logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)--tail, -nNumber of lines to show from the end of the logs--timestamps, -tShow timestamps