diff --git a/content/includes/daemon-cfg-desktop.md b/content/includes/daemon-cfg-desktop.md new file mode 100644 index 000000000000..d00bf3813b18 --- /dev/null +++ b/content/includes/daemon-cfg-desktop.md @@ -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). diff --git a/content/manuals/engine/logging/drivers/awslogs.md b/content/manuals/engine/logging/drivers/awslogs.md index d68afb3498e0..46fa73992768 100644 --- a/content/manuals/engine/logging/drivers/awslogs.md +++ b/content/manuals/engine/logging/drivers/awslogs.md @@ -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. diff --git a/content/manuals/engine/logging/drivers/fluentd.md b/content/manuals/engine/logging/drivers/fluentd.md index 41f27786841f..4169bc8c04b4 100644 --- a/content/manuals/engine/logging/drivers/fluentd.md +++ b/content/manuals/engine/logging/drivers/fluentd.md @@ -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. diff --git a/content/manuals/engine/logging/drivers/gcplogs.md b/content/manuals/engine/logging/drivers/gcplogs.md index cb574c3e4af9..61994ce817f9 100644 --- a/content/manuals/engine/logging/drivers/gcplogs.md +++ b/content/manuals/engine/logging/drivers/gcplogs.md @@ -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. diff --git a/content/manuals/engine/logging/drivers/gelf.md b/content/manuals/engine/logging/drivers/gelf.md index 5416bdc9463d..1baeb98d974f 100644 --- a/content/manuals/engine/logging/drivers/gelf.md +++ b/content/manuals/engine/logging/drivers/gelf.md @@ -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. diff --git a/content/manuals/engine/logging/drivers/journald.md b/content/manuals/engine/logging/drivers/journald.md index 8bd75043a563..071d736787ac 100644 --- a/content/manuals/engine/logging/drivers/journald.md +++ b/content/manuals/engine/logging/drivers/journald.md @@ -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 diff --git a/content/manuals/engine/logging/drivers/json-file.md b/content/manuals/engine/logging/drivers/json-file.md index b275f6188664..430ce7d7a694 100644 --- a/content/manuals/engine/logging/drivers/json-file.md +++ b/content/manuals/engine/logging/drivers/json-file.md @@ -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. diff --git a/content/manuals/engine/logging/drivers/local.md b/content/manuals/engine/logging/drivers/local.md index ba3292d4a865..d5cd56fc6647 100644 --- a/content/manuals/engine/logging/drivers/local.md +++ b/content/manuals/engine/logging/drivers/local.md @@ -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. diff --git a/content/manuals/engine/logging/drivers/splunk.md b/content/manuals/engine/logging/drivers/splunk.md index 97373d1198ac..5a4e99e211a4 100644 --- a/content/manuals/engine/logging/drivers/splunk.md +++ b/content/manuals/engine/logging/drivers/splunk.md @@ -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 diff --git a/content/manuals/engine/logging/drivers/syslog.md b/content/manuals/engine/logging/drivers/syslog.md index bfdce11d1e67..e27547b4dfa4 100644 --- a/content/manuals/engine/logging/drivers/syslog.md +++ b/content/manuals/engine/logging/drivers/syslog.md @@ -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.