11<!-- [metadata]>
22+++
3- title = "daemon"
3+ title = "dockerd"
4+ aliases = ["/engine/reference/commandline/daemon/"]
45description = "The daemon command description and usage"
56keywords = ["container, daemon, runtime"]
67[menu.main]
@@ -11,7 +12,7 @@ weight = -1
1112
1213# daemon
1314
14- Usage: docker daemon [OPTIONS]
15+ Usage: dockerd [OPTIONS]
1516
1617 A self-sufficient runtime for linux containers.
1718
@@ -70,11 +71,11 @@ weight = -1
7071
7172Options with [ ] may be specified multiple times.
7273
73- The Docker daemon is the persistent process that manages containers. Docker
74- uses the same binary for both the daemon and client. To run the daemon you
75- type ` docker daemon ` .
74+ dockerd is the persistent process that manages containers. Docker
75+ uses different binaries for the daemon and client. To run the daemon you
76+ type ` dockerd ` .
7677
77- To run the daemon with debug output, use ` docker daemon -D` .
78+ To run the daemon with debug output, use ` dockerd -D` .
7879
7980## Daemon socket option
8081
@@ -102,8 +103,8 @@ communication with the daemon.
102103
103104On Systemd based systems, you can communicate with the daemon via
104105[ Systemd socket activation] ( http://0pointer.de/blog/projects/socket-activation.html ) ,
105- use ` docker daemon -H fd://` . Using ` fd:// ` will work perfectly for most setups but
106- you can also specify individual sockets: ` docker daemon -H fd://3` . If the
106+ use ` dockerd -H fd://` . Using ` fd:// ` will work perfectly for most setups but
107+ you can also specify individual sockets: ` dockerd -H fd://3` . If the
107108specified socket activated files aren't found, then Docker will exit. You can
108109find examples of using Systemd socket activation with Docker and Systemd in the
109110[ Docker source tree] ( https://github.com/docker/docker/tree/master/contrib/init/systemd/ ) .
@@ -112,7 +113,7 @@ You can configure the Docker daemon to listen to multiple sockets at the same
112113time using multiple ` -H ` options:
113114
114115 # listen using the default unix socket, and on 2 specific IP addresses on this host.
115- docker daemon -H unix:///var/run/docker.sock -H tcp://192.168.59.106 -H tcp://10.10.10.2
116+ dockerd -H unix:///var/run/docker.sock -H tcp://192.168.59.106 -H tcp://10.10.10.2
116117
117118The Docker client will honor the ` DOCKER_HOST ` environment variable to set the
118119` -H ` flag for the client.
@@ -160,16 +161,16 @@ article explains how to tune your existing setup without the use of options.
160161
161162The ` btrfs ` driver is very fast for ` docker build ` - but like ` devicemapper `
162163does not share executable memory between devices. Use
163- ` docker daemon -s btrfs -g /mnt/btrfs_partition` .
164+ ` dockerd -s btrfs -g /mnt/btrfs_partition` .
164165
165166The ` zfs ` driver is probably not as fast as ` btrfs ` but has a longer track record
166167on stability. Thanks to ` Single Copy ARC ` shared blocks between clones will be
167- cached only once. Use ` docker daemon -s zfs` . To select a different zfs filesystem
168+ cached only once. Use ` dockerd -s zfs` . To select a different zfs filesystem
168169set ` zfs.fsname ` option as described in [ Storage driver options] ( #storage-driver-options ) .
169170
170171The ` overlay ` is a very fast union filesystem. It is now merged in the main
171172Linux kernel as of [ 3.18.0] ( https://lkml.org/lkml/2014/10/26/137 ) . Call
172- ` docker daemon -s overlay` to use it.
173+ ` dockerd -s overlay` to use it.
173174
174175> ** Note:**
175176> As promising as ` overlay ` is, the feature is still quite young and should not
@@ -210,7 +211,7 @@ options for `zfs` start with `zfs`.
210211
211212 Example use:
212213
213- $ docker daemon \
214+ $ dockerd \
214215 --storage-opt dm.thinpooldev=/dev/mapper/thin-pool
215216
216217* ` dm.basesize `
@@ -227,7 +228,7 @@ options for `zfs` start with `zfs`.
227228
228229 Example use:
229230
230- $ docker daemon --storage-opt dm.basesize=50G
231+ $ dockerd --storage-opt dm.basesize=50G
231232
232233 This will increase the base device size to 50G. The Docker daemon will throw an
233234 error if existing base device size is larger than 50G. A user can use
@@ -243,7 +244,7 @@ options for `zfs` start with `zfs`.
243244
244245 Example use:
245246
246- $ docker daemon --storage-opt dm.basesize=20G
247+ $ dockerd --storage-opt dm.basesize=20G
247248
248249* ` dm.loopdatasize `
249250
@@ -258,7 +259,7 @@ options for `zfs` start with `zfs`.
258259
259260 Example use:
260261
261- $ docker daemon --storage-opt dm.loopdatasize=200G
262+ $ dockerd --storage-opt dm.loopdatasize=200G
262263
263264* ` dm.loopmetadatasize `
264265
@@ -273,7 +274,7 @@ options for `zfs` start with `zfs`.
273274
274275 Example use:
275276
276- $ docker daemon --storage-opt dm.loopmetadatasize=4G
277+ $ dockerd --storage-opt dm.loopmetadatasize=4G
277278
278279* ` dm.fs `
279280
@@ -282,23 +283,23 @@ options for `zfs` start with `zfs`.
282283
283284 Example use:
284285
285- $ docker daemon --storage-opt dm.fs=ext4
286+ $ dockerd --storage-opt dm.fs=ext4
286287
287288* ` dm.mkfsarg `
288289
289290 Specifies extra mkfs arguments to be used when creating the base device.
290291
291292 Example use:
292293
293- $ docker daemon --storage-opt "dm.mkfsarg=-O ^has_journal"
294+ $ dockerd --storage-opt "dm.mkfsarg=-O ^has_journal"
294295
295296* ` dm.mountopt `
296297
297298 Specifies extra mount options used when mounting the thin devices.
298299
299300 Example use:
300301
301- $ docker daemon --storage-opt dm.mountopt=nodiscard
302+ $ dockerd --storage-opt dm.mountopt=nodiscard
302303
303304* ` dm.datadev `
304305
@@ -312,7 +313,7 @@ options for `zfs` start with `zfs`.
312313
313314 Example use:
314315
315- $ docker daemon \
316+ $ dockerd \
316317 --storage-opt dm.datadev=/dev/sdb1 \
317318 --storage-opt dm.metadatadev=/dev/sdc1
318319
@@ -332,7 +333,7 @@ options for `zfs` start with `zfs`.
332333
333334 Example use:
334335
335- $ docker daemon \
336+ $ dockerd \
336337 --storage-opt dm.datadev=/dev/sdb1 \
337338 --storage-opt dm.metadatadev=/dev/sdc1
338339
@@ -343,7 +344,7 @@ options for `zfs` start with `zfs`.
343344
344345 Example use:
345346
346- $ docker daemon --storage-opt dm.blocksize=512K
347+ $ dockerd --storage-opt dm.blocksize=512K
347348
348349* ` dm.blkdiscard `
349350
@@ -357,7 +358,7 @@ options for `zfs` start with `zfs`.
357358
358359 Example use:
359360
360- $ docker daemon --storage-opt dm.blkdiscard=false
361+ $ dockerd --storage-opt dm.blkdiscard=false
361362
362363* ` dm.override_udev_sync_check `
363364
@@ -383,7 +384,7 @@ options for `zfs` start with `zfs`.
383384 To allow the ` docker ` daemon to start, regardless of ` udev ` sync not being
384385 supported, set ` dm.override_udev_sync_check ` to true:
385386
386- $ docker daemon --storage-opt dm.override_udev_sync_check=true
387+ $ dockerd --storage-opt dm.override_udev_sync_check=true
387388
388389 When this value is ` true ` , the ` devicemapper ` continues and simply warns
389390 you the errors are happening.
@@ -413,7 +414,7 @@ options for `zfs` start with `zfs`.
413414
414415 Example use:
415416
416- $ docker daemon --storage-opt dm.use_deferred_removal=true
417+ $ dockerd --storage-opt dm.use_deferred_removal=true
417418
418419* ` dm.use_deferred_deletion `
419420
@@ -427,7 +428,7 @@ options for `zfs` start with `zfs`.
427428 To avoid this failure, enable both deferred device deletion and deferred
428429 device removal on the daemon.
429430
430- $ docker daemon \
431+ $ dockerd \
431432 --storage-opt dm.use_deferred_deletion=true \
432433 --storage-opt dm.use_deferred_removal=true
433434
@@ -466,7 +467,7 @@ options for `zfs` start with `zfs`.
466467 Example use:
467468
468469 ``` bash
469- $ docker daemon --storage-opt dm.min_free_space=10%
470+ $ dockerd --storage-opt dm.min_free_space=10%
470471 ```
471472
472473Currently supported options of ` zfs` :
@@ -479,7 +480,7 @@ Currently supported options of `zfs`:
479480
480481 Example use:
481482
482- $ docker daemon -s zfs --storage-opt zfs.fsname=zroot/docker
483+ $ dockerd -s zfs --storage-opt zfs.fsname=zroot/docker
483484
484485# # Docker runtime execution options
485486
@@ -501,25 +502,25 @@ cgroups. You can specify only specify `cgroupfs` or `systemd`. If you specify
501502
502503This example sets the ` cgroupdriver` to ` systemd` :
503504
504- $ sudo docker daemon --exec-opt native.cgroupdriver=systemd
505+ $ sudo dockerd --exec-opt native.cgroupdriver=systemd
505506
506507Setting this option applies to all containers the daemon launches.
507508
508509Also Windows Container makes use of ` --exec-opt` for special purpose. Docker user
509510can specify default container isolation technology with this, for example:
510511
511- $ docker daemon --exec-opt isolation=hyperv
512+ $ dockerd --exec-opt isolation=hyperv
512513
513514Will make ` hyperv` the default isolation technology on Windows, without specifying
514515isolation value on daemon start, Windows isolation technology will default to ` process` .
515516
516517# # Daemon DNS options
517518
518519To set the DNS server for all Docker containers, use
519- ` docker daemon --dns 8.8.8.8` .
520+ ` dockerd --dns 8.8.8.8` .
520521
521522To set the DNS search domain for all Docker containers, use
522- ` docker daemon --dns-search example.com` .
523+ ` dockerd --dns-search example.com` .
523524
524525# # Insecure registries
525526
@@ -578,7 +579,7 @@ need to be added to your Docker host's configuration:
5785791. Install the `ca-certificates` package for your distribution
5795802. Ask your network admin for the proxy' s CA certificate and append them to
580581 ` /etc/pki/tls/certs/ca-bundle.crt`
581- 3. Then start your Docker daemon with ` HTTPS_PROXY=http://username:password@proxy:port/ docker daemon ` .
582+ 3. Then start your Docker daemon with ` HTTPS_PROXY=http://username:password@proxy:port/ dockerd ` .
582583 The ` username:` and ` password@` are optional - and are only needed if your
583584 proxy is set up to require authentication.
584585
@@ -614,7 +615,7 @@ using the `--cluster-store-opt` flag, specifying the paths to PEM encoded
614615files. For example:
615616
616617```bash
617- docker daemon \
618+ dockerd \
618619 --cluster-advertise 192.168.1.2:2376 \
619620 --cluster-store etcd://192.168.1.2:2379 \
620621 --cluster-store-opt kv.cacertfile=/path/to/ca.pem \
@@ -664,7 +665,7 @@ authorization plugins when you start the Docker `daemon` using the
664665` --authorization-plugin=PLUGIN_ID` option.
665666
666667` ` ` bash
667- docker daemon --authorization-plugin=plugin1 --authorization-plugin=plugin2,...
668+ dockerd --authorization-plugin=plugin1 --authorization-plugin=plugin2,...
668669` ` `
669670
670671The ` PLUGIN_ID` value is either the plugin' s name or a path to its specification
@@ -738,7 +739,7 @@ startup will fail with an error message.
738739*Example: starting with default Docker user management:*
739740
740741```bash
741- $ docker daemon --userns-remap=default
742+ $ dockerd --userns-remap=default
742743```
743744
744745When `default` is provided, Docker will create - or find the existing - user and group
@@ -827,10 +828,10 @@ Docker supports softlinks for the Docker data directory (`/var/lib/docker`) and
827828for `/var/lib/docker/tmp`. The `DOCKER_TMPDIR` and the data directory can be
828829set like this:
829830
830- DOCKER_TMPDIR=/mnt/disk2/tmp /usr/local/bin/docker daemon -D -g /var/lib/docker -H unix:// > /var/lib/docker-machine/docker.log 2>&1
831+ DOCKER_TMPDIR=/mnt/disk2/tmp /usr/local/bin/dockerd -D -g /var/lib/docker -H unix:// > /var/lib/docker-machine/docker.log 2>&1
831832 # or
832833 export DOCKER_TMPDIR=/mnt/disk2/tmp
833- /usr/local/bin/docker daemon -D -g /var/lib/docker -H unix:// > /var/lib/docker-machine/docker.log 2>&1
834+ /usr/local/bin/dockerd -D -g /var/lib/docker -H unix:// > /var/lib/docker-machine/docker.log 2>&1
834835
835836
836837## Default cgroup parent
0 commit comments