mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
feat(quadlet): log option handling
I found that Quadlet didn't currently have support for log options. This merge allows Quadlet to handle log options and correctly pass those values through to `podman run` for Container and Kube types. Syntactically consistent with existing parameters: ```ini [Container] Image=localhost/imagename LogOpt=path=/var/log/container/mycontainer.json LogOpt=size=10mb ``` Signed-off-by: Brett Calliss <brett@obligatory.email>
This commit is contained in:
@ -278,6 +278,7 @@ Valid options for `[Container]` are listed below:
|
||||
| IP6=2001:db8::1 | --ip6 2001:db8::1 |
|
||||
| Label="XYZ" | --label "XYZ" |
|
||||
| LogDriver=journald | --log-driver journald |
|
||||
| LogOpt=path=/var/log/mykube\.json | --log-opt path=/var/log/mykube\.json |
|
||||
| Mask=/proc/sys/foo\:/proc/sys/bar | --security-opt mask=/proc/sys/foo:/proc/sys/bar |
|
||||
| Mount=type=... | --mount type=... |
|
||||
| Network=host | --net host |
|
||||
@ -557,6 +558,12 @@ This key can be listed multiple times.
|
||||
Set the log-driver used by Podman when running the container.
|
||||
Equivalent to the Podman `--log-driver` option.
|
||||
|
||||
### `LogOpt=`
|
||||
|
||||
Set the log-opt (logging options) used by Podman when running the container.
|
||||
Equivalent to the Podman `--log-opt` option.
|
||||
This key can be listed multiple times.
|
||||
|
||||
### `Mask=`
|
||||
|
||||
Specify the paths to mask separated by a colon. `Mask=/path/1:/path/2`. A masked path cannot be accessed inside the container.
|
||||
|
Reference in New Issue
Block a user