You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`DOCKER_API_VERSION`| Override the negotiated API version to use for debugging (e.g. `1.19`) |
129
-
|`DOCKER_CERT_PATH`| Location of your authentication keys. This variable is used both by the `docker` CLI and the [`dockerd` daemon](dockerd.md)|
130
-
|`DOCKER_CONFIG`| The location of your client configuration files. |
131
-
|`DOCKER_CONTENT_TRUST_SERVER`| The URL of the Notary server to use. Defaults to the same URL as the registry. |
132
-
|`DOCKER_CONTENT_TRUST`| When set Docker uses notary to sign and verify images. Equates to `--disable-content-trust=false` for build, create, pull, push, run. |
133
-
|`DOCKER_CONTEXT`| Name of the `docker context` to use (overrides `DOCKER_HOST` env var and default context set with `docker context use`) |
134
-
|`DOCKER_DEFAULT_PLATFORM`| Default platform for commands that take the `--platform` flag. |
135
-
|`DOCKER_HIDE_LEGACY_COMMANDS`| When set, Docker hides "legacy" top-level commands (such as `docker rm`, and `docker pull`) in `docker help` output, and only `Management commands` per object-type (e.g., `docker container`) are printed. This may become the default in a future release, at which point this environment-variable is removed. |
136
-
|`DOCKER_HOST`| Daemon socket to connect to. |
137
-
|`DOCKER_TLS_VERIFY`| When set Docker uses TLS and verifies the remote. This variable is used both by the `docker` CLI and the [`dockerd` daemon](dockerd.md)|
138
-
|`BUILDKIT_PROGRESS`| Set type of progress output (`auto`, `plain`, `tty`) when [building](build.md) with [BuildKit backend](https://docs.docker.com/build/buildkit/). Use plain to show container output (default `auto`). |
|`DOCKER_API_VERSION`| Override the negotiated API version to use for debugging (e.g. `1.19`) |
129
+
|`DOCKER_CERT_PATH`| Location of your authentication keys. This variable is used both by the `docker` CLI and the [`dockerd` daemon](dockerd.md)|
130
+
|`DOCKER_CONFIG`| The location of your client configuration files. |
131
+
|`DOCKER_CONTENT_TRUST_SERVER`| The URL of the Notary server to use. Defaults to the same URL as the registry. |
132
+
|`DOCKER_CONTENT_TRUST`| When set Docker uses notary to sign and verify images. Equates to `--disable-content-trust=false` for build, create, pull, push, run. |
133
+
|`DOCKER_CONTEXT`| Name of the `docker context` to use (overrides `DOCKER_HOST` env var and default context set with `docker context use`) |
134
+
|`DOCKER_DEFAULT_PLATFORM`| Default platform for commands that take the `--platform` flag. |
135
+
|`DOCKER_HIDE_LEGACY_COMMANDS`| When set, Docker hides "legacy" top-level commands (such as `docker rm`, and `docker pull`) in `docker help` output, and only `Management commands` per object-type (e.g., `docker container`) are printed. This may become the default in a future release. |
136
+
|`DOCKER_HOST`| Daemon socket to connect to. |
137
+
|`DOCKER_TLS_VERIFY`| When set Docker uses TLS and verifies the remote. This variable is used both by the `docker` CLI and the [`dockerd` daemon](dockerd.md)|
138
+
|`BUILDKIT_PROGRESS`| Set type of progress output (`auto`, `plain`, `tty`) when [building](build.md) with [BuildKit backend](https://docs.docker.com/build/buildkit/). Use plain to show container output (default `auto`). |
139
139
140
140
Because Docker is developed using Go, you can also use any environment
141
141
variables used by the Go runtime. In particular, you may find these useful:
|`DOCKER_CERT_PATH`| Location of your authentication keys. This variable is used both by the [`docker` CLI](cli.md) and the `dockerd` daemon. |
138
+
|`DOCKER_DRIVER`| The storage driver to use. |
139
+
|`DOCKER_RAMDISK`| If set this disables 'pivot_root'. |
140
+
|`DOCKER_TLS_VERIFY`| When set Docker uses TLS and verifies the remote. This variable is used both by the [`docker` CLI](cli.md) and the `dockerd` daemon. |
141
+
|`DOCKER_TMPDIR`| Location for temporary files created by the daemon. |
142
+
|`HTTP_PROXY`| Proxy URL for HTTP requests unless overridden by NoProxy. See the [Go specification](https://pkg.go.dev/golang.org/x/net/http/httpproxy#Config) for details. |
143
+
|`HTTPS_PROXY`| Proxy URL for HTTPS requests unless overridden by NoProxy. See the [Go specification](https://pkg.go.dev/golang.org/x/net/http/httpproxy#Config) for details. |
144
+
|`MOBY_DISABLE_PIGZ`| Disables the use of [`unpigz`](https://linux.die.net/man/1/pigz) to decompress layers in parallel when pulling images, even if it is installed. ||
145
+
|`NO_PROXY`| Comma-separated values specifying hosts that should be excluded from proxying. See the [Go specification](https://pkg.go.dev/golang.org/x/net/http/httpproxy#Config) for details. |
139
146
140
147
## Examples
141
148
149
+
### Proxy configuration
150
+
151
+
> **Note**
152
+
>
153
+
> Refer to the [Docker Desktop manual](https://docs.docker.com/desktop/networking/#httphttps-proxy-support)
154
+
> if you are running [Docker Desktop](https://docs.docker.com/desktop/).
155
+
156
+
If you are behind an HTTP proxy server, for example in corporate settings,
157
+
you may have to configure the Docker daemon to use the proxy server for
158
+
operations such as pulling and pushing images. The daemon can be configured
159
+
in three ways:
160
+
161
+
1. Using environment variables (`HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY`).
162
+
2. Using the "http-proxy", "https-proxy", and "no-proxy" fields in the
163
+
[daemon configuration file](#daemon-configuration-file) (Docker Engine 23.0 or newer).
164
+
3. Using the `--http-proxy`, `--https-proxy`, and `--no-proxy` command-line
165
+
options. (Docker Engine 23.0 or newer).
166
+
167
+
The command-line and configuration file options take precedence over environment
168
+
variables. Refer to [control and configure Docker with systemd](https://docs.docker.com/config/daemon/systemd/#httphttps-proxy)
169
+
to set these environment variables on a host using `systemd`.
170
+
142
171
### Daemon socket option
143
172
144
173
The Docker daemon can listen for [Docker Engine API](https://docs.docker.com/engine/api/)
@@ -1222,6 +1251,9 @@ This is a full example of the allowed configuration options on Linux:
1222
1251
"fixed-cidr-v6": "",
1223
1252
"group": "",
1224
1253
"hosts": [],
1254
+
"http-proxy": "http://proxy.example.com:80",
1255
+
"https-proxy": "https://proxy.example.com:443",
1256
+
"no-proxy": "*.test.example.com,.example.org",
1225
1257
"icc": false,
1226
1258
"init": false,
1227
1259
"init-path": "/usr/libexec/docker-init",
@@ -1255,7 +1287,7 @@ This is a full example of the allowed configuration options on Linux:
0 commit comments