Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions content/includes/daemon-cfg-desktop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
> [!NOTE]
>
> If you're using Docker Desktop, edit the daemon configuration through the
> Docker Desktop Dashboard. Open **Settings** and select **Docker Engine**.
> For details, see
> [Docker Engine settings](/manuals/desktop/settings-and-maintenance/settings.md#docker-engine).
9 changes: 5 additions & 4 deletions content/manuals/engine/logging/drivers/awslogs.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ and Command Line Tools](https://docs.aws.amazon.com/cli/latest/reference/logs/in
## Usage

To use the `awslogs` driver as the default logging driver, set the `log-driver`
and `log-opt` keys to appropriate values in the `daemon.json` file, which is
located in `/etc/docker/` on Linux hosts or
`C:\ProgramData\docker\config\daemon.json` on Windows Server. For more about
configuring Docker using `daemon.json`, see
and `log-opt` keys to appropriate values in the `daemon.json` file. For more
about configuring Docker using `daemon.json`, see
[daemon.json](/reference/cli/dockerd.md#daemon-configuration-file).

{{% include "daemon-cfg-desktop.md" %}}

The following example sets the log driver to `awslogs` and sets the
`awslogs-region` option.

Expand Down
9 changes: 5 additions & 4 deletions content/manuals/engine/logging/drivers/fluentd.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ Some options are supported by specifying `--log-opt` as many times as needed:
- `tag`: specify a tag for Fluentd messages. Supports some Go template markup, ex `{{.ID}}`, `{{.FullID}}` or `{{.Name}}` `docker.{{.ID}}`.

To use the `fluentd` driver as the default logging driver, set the `log-driver`
and `log-opt` keys to appropriate values in the `daemon.json` file, which is
located in `/etc/docker/` on Linux hosts or
`C:\ProgramData\docker\config\daemon.json` on Windows Server. For more about
configuring Docker using `daemon.json`, see [daemon.json](/reference/cli/dockerd.md#daemon-configuration-file).
and `log-opt` keys to appropriate values in the `daemon.json` file. For more
about configuring Docker using `daemon.json`, see
[daemon.json](/reference/cli/dockerd.md#daemon-configuration-file).

{{% include "daemon-cfg-desktop.md" %}}

The following example sets the log driver to `fluentd` and sets the
`fluentd-address` option.
Expand Down
8 changes: 4 additions & 4 deletions content/manuals/engine/logging/drivers/gcplogs.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ Logging.
## Usage

To use the `gcplogs` driver as the default logging driver, set the `log-driver`
and `log-opt` keys to appropriate values in the `daemon.json` file, which is
located in `/etc/docker/` on Linux hosts or
`C:\ProgramData\docker\config\daemon.json` on Windows Server. For more about
configuring Docker using `daemon.json`, see
and `log-opt` keys to appropriate values in the `daemon.json` file. For more
about configuring Docker using `daemon.json`, see
[daemon.json](/reference/cli/dockerd.md#daemon-configuration-file).

{{% include "daemon-cfg-desktop.md" %}}

The following example sets the log driver to `gcplogs` and sets the
`gcp-meta-name` option.

Expand Down
7 changes: 4 additions & 3 deletions content/manuals/engine/logging/drivers/gelf.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ In GELF, every log message is a dict with the following fields:
## Usage

To use the `gelf` driver as the default logging driver, set the `log-driver` and
`log-opt` keys to appropriate values in the `daemon.json` file, which is located
in `/etc/docker/` on Linux hosts or `C:\ProgramData\docker\config\daemon.json`
on Windows Server. For more about configuring Docker using `daemon.json`, see
`log-opt` keys to appropriate values in the `daemon.json` file. For more about
configuring Docker using `daemon.json`, see
[daemon.json](/reference/cli/dockerd.md#daemon-configuration-file).

{{% include "daemon-cfg-desktop.md" %}}

The following example sets the log driver to `gelf` and sets the `gelf-address`
option.

Expand Down
8 changes: 4 additions & 4 deletions content/manuals/engine/logging/drivers/journald.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ stores the following metadata in the journal with each message:
## Usage

To use the `journald` driver as the default logging driver, set the `log-driver`
and `log-opts` keys to appropriate values in the `daemon.json` file, which is
located in `/etc/docker/` on Linux hosts or
`C:\ProgramData\docker\config\daemon.json` on Windows Server. For more about
configuring Docker using `daemon.json`, see
and `log-opts` keys to appropriate values in the `daemon.json` file. For more
about configuring Docker using `daemon.json`, see
[daemon.json](/reference/cli/dockerd.md#daemon-configuration-file).

{{% include "daemon-cfg-desktop.md" %}}

The following example sets the log driver to `journald`:

```json
Expand Down
8 changes: 4 additions & 4 deletions content/manuals/engine/logging/drivers/json-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ only one container.
## Usage

To use the `json-file` driver as the default logging driver, set the `log-driver`
and `log-opts` keys to appropriate values in the `daemon.json` file, which is
located in `/etc/docker/` on Linux hosts or
`C:\ProgramData\docker\config\` on Windows Server. If the file does not exist, create it first. For more information about
configuring Docker using `daemon.json`, see
and `log-opts` keys to appropriate values in the `daemon.json` file. For more
information about configuring Docker using `daemon.json`, see
[daemon.json](/reference/cli/dockerd.md#daemon-configuration-file).

{{% include "daemon-cfg-desktop.md" %}}

The following example sets the log driver to `json-file` and sets the `max-size`
and `max-file` options to enable automatic log-rotation.

Expand Down
8 changes: 4 additions & 4 deletions content/manuals/engine/logging/drivers/local.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ for each file and a default count of 5 for the number of such files (to account
## Usage

To use the `local` driver as the default logging driver, set the `log-driver`
and `log-opt` keys to appropriate values in the `daemon.json` file, which is
located in `/etc/docker/` on Linux hosts or
`C:\ProgramData\docker\config\daemon.json` on Windows Server. For more about
configuring Docker using `daemon.json`, see
and `log-opt` keys to appropriate values in the `daemon.json` file. For more
about configuring Docker using `daemon.json`, see
[daemon.json](/reference/cli/dockerd.md#daemon-configuration-file).

{{% include "daemon-cfg-desktop.md" %}}

The following example sets the log driver to `local` and sets the `max-size`
option.

Expand Down
6 changes: 3 additions & 3 deletions content/manuals/engine/logging/drivers/splunk.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ configuration file and restart Docker. For example:
}
```

The daemon.json file is located in `/etc/docker/` on Linux hosts or
`C:\ProgramData\docker\config\daemon.json` on Windows Server. For more about
configuring Docker using `daemon.json`, see
For more about configuring Docker using `daemon.json`, see
[daemon.json](/reference/cli/dockerd.md#daemon-configuration-file).

{{% include "daemon-cfg-desktop.md" %}}

> [!NOTE]
>
> `log-opts` configuration options in the `daemon.json` configuration file must
Expand Down
8 changes: 4 additions & 4 deletions content/manuals/engine/logging/drivers/syslog.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ The format is defined in [RFC 5424](https://tools.ietf.org/html/rfc5424) and Doc
## Usage

To use the `syslog` driver as the default logging driver, set the `log-driver`
and `log-opt` keys to appropriate values in the `daemon.json` file, which is
located in `/etc/docker/` on Linux hosts or
`C:\ProgramData\docker\config\daemon.json` on Windows Server. For more about
configuring Docker using `daemon.json`, see
and `log-opt` keys to appropriate values in the `daemon.json` file. For more
about configuring Docker using `daemon.json`, see
[daemon.json](/reference/cli/dockerd.md#daemon-configuration-file).

{{% include "daemon-cfg-desktop.md" %}}

The following example sets the log driver to `syslog` and sets the
`syslog-address` option. The `syslog-address` options supports both UDP and TCP;
this example uses UDP.
Expand Down