Skip to content

Commit

Permalink
Update log_tags.md (#4351)
Browse files Browse the repository at this point in the history
  • Loading branch information
scjane authored and Misty Stanley-Jones committed Sep 11, 2017
1 parent 527cd9d commit 07ffdd4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions engine/admin/logging/log_tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ title: Log tags for logging driver

The `tag` log option specifies how to format a tag that identifies the
container's log messages. By default, the system uses the first 12 characters of
the container id. To override this behavior, specify a `tag` option:
the container ID. To override this behavior, specify a `tag` option:

```bash
$ docker run --log-driver=fluentd --log-opt fluentd-address=myhost.local:24224 --log-opt tag="mailer"
Expand All @@ -19,11 +19,11 @@ Docker supports some special template markup you can use when specifying a tag's
{% raw %}
| Markup | Description |
|--------------------|------------------------------------------------------|
| `{{.ID}}` | The first 12 characters of the container id. |
| `{{.FullID}}` | The full container id. |
| `{{.ID}}` | The first 12 characters of the container ID. |
| `{{.FullID}}` | The full container ID. |
| `{{.Name}}` | The container name. |
| `{{.ImageID}}` | The first 12 characters of the container's image id. |
| `{{.ImageFullID}}` | The container's full image identifier. |
| `{{.ImageID}}` | The first 12 characters of the container's image ID. |
| `{{.ImageFullID}}` | The container's full image ID. |
| `{{.ImageName}}` | The name of the image used by the container. |
| `{{.DaemonName}}` | The name of the docker program (`docker`). |

Expand Down

0 comments on commit 07ffdd4

Please sign in to comment.