Skip to content

Commit

Permalink
Remove experimental from service logs
Browse files Browse the repository at this point in the history
Service logs API is now stable. Service logs now support all features,
except retrieving details provided to the log driver.

Signed-off-by: Drew Erny <[email protected]>
  • Loading branch information
dperny authored and Tibor Vass committed Jun 2, 2017
1 parent 4b8712e commit 279bbba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
18 changes: 12 additions & 6 deletions docs/reference/commandline/service_logs.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
title: "service logs (experimental)"
title: "service logs"
description: "The service logs command description and usage"
keywords: "service, logs"
advisory: "experimental"
keywords: "service, task, logs"
---

<!-- This file is maintained within the docker/docker Github
Expand All @@ -17,14 +16,16 @@ advisory: "experimental"
# service logs

```Markdown
Usage: docker service logs [OPTIONS] SERVICE
Usage: docker service logs [OPTIONS] SERVICE|TASK

Fetch the logs of a service
Fetch the logs of a service or task

Options:
--details Show extra details provided to logs
-f, --follow Follow log output
--help Print usage
--no-resolve Do not map IDs to Names in output
--no-task-ids Do not include task IDs in output
--no-trunc Do not truncate output
--since string Show logs since timestamp
--tail string Number of lines to show from the end of the logs (default "all")
-t, --timestamps Show timestamps
Expand All @@ -34,6 +35,11 @@ Options:

The `docker service logs` command batch-retrieves logs present at the time of execution.

The `docker service logs` command can be used with either the name or ID of a
service, or with the ID of a task. If a service is passed, it will display logs
for all of the containers in that service. If a task is passed, it will only
display logs from that particular task.

> **Note**: This command is only functional for services that are started with
> the `json-file` or `journald` logging driver.
Expand Down
1 change: 0 additions & 1 deletion experimental/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Metrics (Prometheus) output for basic container, image, and daemon operations.

* The top-level [docker deploy](../docs/reference/commandline/deploy.md) command. The
`docker stack deploy` command is **not** experimental.
* [`docker service logs` command](../docs/reference/commandline/service_logs.md)
* [`--squash` option to `docker build` command](../docs/reference/commandline/build.md##squash-an-images-layers---squash-experimental-only)
* [External graphdriver plugins](../docs/extend/plugins_graphdriver.md)
* [Ipvlan Network Drivers](vlan-networks.md)
Expand Down

0 comments on commit 279bbba

Please sign in to comment.