Merge pull request #1388 from vdemeester/1303-log-driver-support

Add support for log-driver as a docker-compose.yml option
This commit is contained in:
Daniel Nephin 2015-05-07 12:00:42 -04:00
commit 0f2f9db6d8
5 changed files with 41 additions and 1 deletions

View file

@ -271,6 +271,20 @@ labels:
- "com.example.label-with-empty-value"
```
### log driver
Specify a logging driver for the service's containers, as with the ``--log-driver`` option for docker run ([documented here](http://docs.docker.com/reference/run/#logging-drivers-log-driver)).
Allowed values are currently ``json-file``, ``syslog`` and ``none``. The list will change over time as more drivers are added to the Docker engine.
The default value is json-file.
```
log_driver: "json-file"
log_driver: "syslog"
log_driver: "none"
```
### net
Networking mode. Use the same values as the docker client `--net` parameter.