Merge pull request #11458 from ibuildthecloud/syslog
Add syslog logging driver Upstream-commit: 65e21f570358f46f6ad0f8fa2cd3394706ba169d Component: engine
This commit is contained in:
@ -121,7 +121,7 @@ IMAGE [COMMAND] [ARG...]
|
||||
**--lxc-conf**=[]
|
||||
(lxc exec-driver only) Add custom lxc options --lxc-conf="lxc.cgroup.cpuset.cpus = 0,1"
|
||||
|
||||
**--log-driver**="|*json-file*|*none*"
|
||||
**--log-driver**="|*json-file*|*syslog*|*none*"
|
||||
Logging driver for container. Default is defined by daemon `--log-driver` flag.
|
||||
**Warning**: `docker logs` command works only for `json-file` logging driver.
|
||||
|
||||
|
||||
@ -222,7 +222,7 @@ which interface and port to use.
|
||||
**--lxc-conf**=[]
|
||||
(lxc exec-driver only) Add custom lxc options --lxc-conf="lxc.cgroup.cpuset.cpus = 0,1"
|
||||
|
||||
**--log-driver**="|*json-file*|*none*"
|
||||
**--log-driver**="|*json-file*|*syslog*|*none*"
|
||||
Logging driver for container. Default is defined by daemon `--log-driver` flag.
|
||||
**Warning**: `docker logs` command works only for `json-file` logging driver.
|
||||
|
||||
|
||||
@ -89,7 +89,7 @@ unix://[/path/to/socket] to use.
|
||||
**--label**="[]"
|
||||
Set key=value labels to the daemon (displayed in `docker info`)
|
||||
|
||||
**--log-driver**="*json-file*|*none*"
|
||||
**--log-driver**="*json-file*|*syslog*|*none*"
|
||||
Container's logging driver. Default is `default`.
|
||||
**Warning**: `docker logs` command works only for `json-file` logging driver.
|
||||
|
||||
|
||||
@ -259,7 +259,7 @@ Json Parameters:
|
||||
`Ulimits: { "Name": "nofile", "Soft": 1024, "Hard", 2048 }}`
|
||||
- **LogConfig** - Logging configuration to container, format
|
||||
`{ "Type": "<driver_name>", "Config": {"key1": "val1"}}
|
||||
Available types: `json-file`, `none`.
|
||||
Available types: `json-file`, `syslog`, `none`.
|
||||
`json-file` logging driver.
|
||||
- **CgroupParent** - Path to cgroups under which the cgroup for the container will be created. If the path is not absolute, the path is considered to be relative to the cgroups path of the init process. Cgroups will be created if they do not already exist.
|
||||
|
||||
|
||||
@ -657,6 +657,11 @@ this driver.
|
||||
Default logging driver for Docker. Writes JSON messages to file. `docker logs`
|
||||
command is available only for this logging driver
|
||||
|
||||
## Logging driver: syslog
|
||||
|
||||
Syslog logging driver for Docker. Writes log messages to syslog. `docker logs`
|
||||
command is not available for this logging driver
|
||||
|
||||
## Overriding Dockerfile image defaults
|
||||
|
||||
When a developer builds an image from a [*Dockerfile*](/reference/builder)
|
||||
|
||||
Reference in New Issue
Block a user