Merge pull request #16640 from samuelkarp/awslogs-logging-driver
[awslogs] Auto-detect region and set user-agent Upstream-commit: c545dce004a4b833994478a2fc993ee8e2b3b2cd Component: engine
This commit is contained in:
@ -34,9 +34,10 @@ You can use the `--log-opt NAME=VALUE` flag to specify Amazon CloudWatch Logs lo
|
||||
|
||||
### awslogs-region
|
||||
|
||||
You must specify a region for the `awslogs` logging driver. You can specify the
|
||||
region with either the `awslogs-region` log option or `AWS_REGION` environment
|
||||
variable:
|
||||
The `awslogs` logging driver sends your Docker logs to a specific region. Use
|
||||
the `awslogs-region` log option or the `AWS_REGION` environment variable to set
|
||||
the region. By default, if your Docker daemon is running on an EC2 instance
|
||||
and no region is set, the driver uses the instance's region.
|
||||
|
||||
docker run --log-driver=awslogs --log-opt awslogs-region=us-east-1 ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user