mirror of https://github.com/docker/docs.git
Added Docker-Compose awslogs example (#8638)
* Added docker compose aws logs information * Fixed formatting and text - Signed off by @bermudezmt
This commit is contained in:
parent
8d3cf35b48
commit
81c15665ef
|
@ -40,6 +40,16 @@ You can set the logging driver for a specific container by using the
|
|||
|
||||
docker run --log-driver=awslogs ...
|
||||
|
||||
If you are using Docker Compose, set `awslogs` using the following declaration example:
|
||||
|
||||
```yaml
|
||||
myservice:
|
||||
logging:
|
||||
driver: awslogs
|
||||
options:
|
||||
awslogs-region: us-east-1
|
||||
```
|
||||
|
||||
## Amazon CloudWatch Logs options
|
||||
|
||||
You can add logging options to the `daemon.json` to set Docker-wide defaults,
|
||||
|
|
Loading…
Reference in New Issue