Added details about tag support for AWS log driver

Signed-off-by: French Ben <frenchben@docker.com>
This commit is contained in:
French Ben 2016-10-28 17:30:31 -07:00 committed by Misty Stanley-Jones
parent 4e2241748e
commit 0e10a6618c
1 changed files with 11 additions and 0 deletions

View File

@ -58,6 +58,17 @@ specified, the container ID is used as the log stream.
> at a time. Using the same log stream for multiple containers concurrently
> can cause reduced logging performance.
### tag
Specify tag as an alternative to the AWS logstream name, which interpret some markup, ex `{{.ID}}`, `{{.FullID}}` or `{{.Name}}` `docker.{{.ID}}`
By default, Docker uses the first 12 characters of the container ID to tag log messages.
Refer to the [log tag option documentation](log_tags.md) for customizing
the log tag format.
> **Note:**
> `awslogs-stream` will **always** overwrite the `tag` specified.
## Credentials
You must provide AWS credentials to the Docker daemon to use the `awslogs`