@@ -18,7 +18,7 @@ redirect_from:
1818# daemon
1919
2020``` markdown
21- Usage: dockerd COMMAND
21+ Usage: dockerd [ OPTIONS ]
2222
2323A self-sufficient runtime for containers.
2424
@@ -35,14 +35,14 @@ Options:
3535 --containerd-namespace string Containerd namespace to use (default "moby")
3636 --containerd-plugins-namespace string Containerd namespace to use for plugins (default "plugins.moby")
3737 --cpu-rt-period int Limit the CPU real-time period in microseconds for the
38- parent cgroup for all containers
38+ parent cgroup for all containers (not supported with cgroups v2)
3939 --cpu-rt-runtime int Limit the CPU real-time runtime in microseconds for the
40- parent cgroup for all containers
40+ parent cgroup for all containers (not supported with cgroups v2)
4141 --cri-containerd start containerd with cri
4242 --data-root string Root directory of persistent Docker state (default "/var/lib/docker")
4343 -D, --debug Enable debug mode
4444 --default-address-pool pool-options Default address pools for node specific local networks
45- --default-cgroupns-mode string Default mode for containers cgroup namespace ("host" | "private") (default "host ")
45+ --default-cgroupns-mode string Default mode for containers cgroup namespace ("host" | "private") (default "private ")
4646 --default-gateway ip Container default gateway IPv4 address
4747 --default-gateway-v6 ip Container default gateway IPv6 address
4848 --default-ipc-mode string Default mode for containers ipc ("shareable" | "private") (default "private")
@@ -62,15 +62,17 @@ Options:
6262 -H, --host list Daemon socket(s) to connect to
6363 --host-gateway-ip ip IP address that the special 'host-gateway' string in --add-host resolves to.
6464 Defaults to the IP address of the default bridge
65+ --http-proxy string HTTP proxy URL to use for outgoing traffic
66+ --https-proxy string HTTPS proxy URL to use for outgoing traffic
6567 --icc Enable inter-container communication (default true)
6668 --init Run an init in the container to forward signals and reap processes
6769 --init-path string Path to the docker-init binary
6870 --insecure-registry list Enable insecure registry communication
6971 --ip ip Default IP when binding container ports (default 0.0.0.0)
7072 --ip-forward Enable net.ipv4.ip_forward (default true)
7173 --ip-masq Enable IP masquerading (default true)
74+ --ip6tables Enable addition of ip6tables rules (experimental)
7275 --iptables Enable addition of iptables rules (default true)
73- --ip6tables Enable addition of ip6tables rules (default false)
7476 --ipv6 Enable IPv6 networking
7577 --label list Set key=value labels to the daemon
7678 --live-restore Enable live restore of docker when containers are still running
@@ -81,9 +83,10 @@ Options:
8183 --max-concurrent-uploads int Set the max concurrent uploads (default 5)
8284 --max-download-attempts int Set the max download attempts for each pull (default 5)
8385 --metrics-addr string Set default address and port to serve the metrics api on
84- --mtu int Set the containers network MTU
86+ --mtu int Set the containers network MTU (default 1500)
8587 --network-control-plane-mtu int Network Control plane MTU (default 1500)
8688 --no-new-privileges Set no-new-privileges by default for new containers
89+ --no-proxy string Comma-separated list of hosts or IP addresses for which the proxy is skipped
8790 --node-generic-resource list Advertise user-defined resource
8891 --oom-score-adjust int Set the oom_score_adj for the daemon
8992 -p, --pidfile string Path to use for daemon PID file (default "/var/run/docker.pid")
@@ -143,6 +146,28 @@ by the `dockerd` command line:
143146
144147## Examples
145148
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+
146171### Daemon socket option
147172
148173The Docker daemon can listen for [ Docker Engine API] ( https://docs.docker.com/engine/api/ )
@@ -1226,6 +1251,9 @@ This is a full example of the allowed configuration options on Linux:
12261251 "fixed-cidr-v6" : " " ,
12271252 "group" : " " ,
12281253 "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" ,
12291257 "icc" : false ,
12301258 "init" : false ,
12311259 "init-path" : " /usr/libexec/docker-init" ,
0 commit comments