Skip to content

Commit 98f3846

Browse files
authored
Merge pull request #3905 from trinidadgithub/docs/add-log-driver-none
docs: add --log-driver=none to run command reference
2 parents 856bb40 + 8bef361 commit 98f3846

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/command-reference.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Metadata flags:
313313

314314
Logging flags:
315315

316-
- :whale: `--log-driver=(json-file|journald|fluentd|syslog)`: Logging driver for the container (default `json-file`).
316+
- :whale: `--log-driver=(json-file|journald|fluentd|syslog|none)`: Logging driver for the container (default `json-file`).
317317
- :whale: `--log-driver=json-file`: The logs are formatted as JSON. The default logging driver for nerdctl.
318318
- The `json-file` logging driver supports the following logging options:
319319
- :whale: `--log-opt=max-size=<MAX-SIZE>`: The maximum size of the log before it is rolled. A positive integer plus a modifier representing the unit of measure (k, m, or g). Defaults to unlimited.
@@ -364,6 +364,7 @@ Logging flags:
364364
- :whale: `--log-opt=tag=<VALUE>`: A string that is appended to the
365365
`APP-NAME` in the `syslog` message. By default, nerdctl uses the first
366366
12 characters of the container ID to tag log messages.
367+
- :whale: `--log-driver=none`: Disables logging for the container, preventing log output from being collected.
367368
- :nerd_face: Accepts a LogURI which is a containerd shim logger. A scheme must be specified for the URI. Example: `nerdctl run -d --log-driver binary:///usr/bin/ctr-journald-shim docker.io/library/hello-world:latest`. An implementation of shim logger can be found at (<https://github.com/containerd/containerd/tree/dbef1d56d7ebc05bc4553d72c419ed5ce025b05d/runtime/v2#logging>)
368369

369370
Shared memory flags:

0 commit comments

Comments
 (0)