Skip to content

Commit 24ec73f

Browse files
author
Wen Cheng Ma
committed
Update the docker daemon to dockerd for document
Signed-off-by: Wen Cheng Ma <wenchma@cn.ibm.com>
1 parent deb6ea4 commit 24ec73f

18 files changed

Lines changed: 96 additions & 104 deletions

File tree

‎docs/admin/configuring.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ or `systemd` to manage the `docker` daemon's start and stop.
2222

2323
### Running the docker daemon directly
2424

25-
The `docker` daemon can be run directly using the `docker daemon` command. By default it listens on
25+
The `docker` daemon can be run directly using the `dockerd` command. By default it listens on
2626
the Unix socket `unix:///var/run/docker.sock`
2727

28-
$ docker daemon
28+
$ dockerd
2929

3030
INFO[0000] +job init_networkdriver()
3131
INFO[0000] +job serveapi(unix:///var/run/docker.sock)
@@ -50,15 +50,15 @@ Some of the daemon's options are:
5050

5151
Here is a an example of running the `docker` daemon with configuration options:
5252

53-
$ docker daemon -D --tls=true --tlscert=/var/docker/server.pem --tlskey=/var/docker/serverkey.pem -H tcp://192.168.59.3:2376
53+
$ dockerd -D --tls=true --tlscert=/var/docker/server.pem --tlskey=/var/docker/serverkey.pem -H tcp://192.168.59.3:2376
5454

5555
These options :
5656

5757
- Enable `-D` (debug) mode
5858
- Set `tls` to true with the server certificate and key specified using `--tlscert` and `--tlskey` respectively
5959
- Listen for connections on `tcp://192.168.59.3:2376`
6060

61-
The command line reference has the [complete list of daemon flags](../reference/commandline/daemon.md)
61+
The command line reference has the [complete list of daemon flags](../reference/commandline/dockerd.md)
6262
with explanations.
6363

6464
### Daemon debugging
@@ -137,7 +137,7 @@ These options :
137137
- Set `tls` to true with the server certificate and key specified using `--tlscert` and `--tlskey` respectively
138138
- Listen for connections on `tcp://192.168.59.3:2376`
139139
140-
The command line reference has the [complete list of daemon flags](../reference/commandline/daemon.md)
140+
The command line reference has the [complete list of daemon flags](../reference/commandline/dockerd.md)
141141
with explanations.
142142
143143
@@ -228,7 +228,7 @@ an empty configuration followed by a new one as follows:
228228
```
229229
[Service]
230230
ExecStart=
231-
ExecStart=/usr/bin/docker daemon -H fd:// -D --tls=true --tlscert=/var/docker/server.pem --tlskey=/var/docker/serverkey.pem -H tcp://192.168.59.3:2376
231+
ExecStart=/usr/bin/dockerd -H fd:// -D --tls=true --tlscert=/var/docker/server.pem --tlskey=/var/docker/serverkey.pem -H tcp://192.168.59.3:2376
232232
```
233233
234234
These options :
@@ -237,7 +237,7 @@ These options :
237237
- Set `tls` to true with the server certificate and key specified using `--tlscert` and `--tlskey` respectively
238238
- Listen for connections on `tcp://192.168.59.3:2376`
239239
240-
The command line reference has the [complete list of daemon flags](../reference/commandline/daemon.md)
240+
The command line reference has the [complete list of daemon flags](../reference/commandline/dockerd.md)
241241
with explanations.
242242
243243
6. Save and close the file.

‎docs/installation/binaries.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ these scripts in the <a href="https://github.com/docker/docker/tree/master/contr
163163
contrib directory</a>.
164164

165165
For additional information about running the Engine in daemon mode, refer to
166-
the [daemon command](../reference/commandline/daemon.md) in the Engine command
166+
the [daemon command](../reference/commandline/dockerd.md) in the Engine command
167167
line reference.
168168

169169
### Get the Mac OS X binary

‎docs/quickstart.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ when no `-H` was passed in.
116116

117117
Run Docker in daemon mode:
118118

119-
$ sudo <path to>/docker daemon -H 0.0.0.0:5555 &
119+
$ sudo <path to>/dockerd -H 0.0.0.0:5555 &
120120

121121
Download an `ubuntu` image:
122122

@@ -126,7 +126,7 @@ You can use multiple `-H`, for example, if you want to listen on both
126126
TCP and a Unix socket
127127

128128
# Run docker in daemon mode
129-
$ sudo <path to>/docker daemon -H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock &
129+
$ sudo <path to>/dockerd -H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock &
130130
# Download an ubuntu image, use default Unix socket
131131
$ docker pull ubuntu
132132
# OR use the TCP port

‎docs/reference/api/docker_remote_api_v1.24.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3248,4 +3248,4 @@ To set cross origin requests to the remote api please give values to
32483248
`--api-cors-header` when running Docker in daemon mode. Set * (asterisk) allows all,
32493249
default or blank means CORS disabled
32503250
3251-
$ docker daemon -H="192.168.1.9:2375" --api-cors-header="http://foo.bar"
3251+
$ dockerd -H="192.168.1.9:2375" --api-cors-header="http://foo.bar"
Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!--[metadata]>
22
+++
3-
title = "daemon"
3+
title = "dockerd"
4+
aliases = ["/engine/reference/commandline/daemon/"]
45
description = "The daemon command description and usage"
56
keywords = ["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

7172
Options 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
103104
On 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
107108
specified socket activated files aren't found, then Docker will exit. You can
108109
find 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
112113
time 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

117118
The 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

161162
The `btrfs` driver is very fast for `docker build` - but like `devicemapper`
162163
does 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

165166
The `zfs` driver is probably not as fast as `btrfs` but has a longer track record
166167
on 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
168169
set `zfs.fsname` option as described in [Storage driver options](#storage-driver-options).
169170

170171
The `overlay` is a very fast union filesystem. It is now merged in the main
171172
Linux 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

472473
Currently 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

502503
This 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

506507
Setting this option applies to all containers the daemon launches.
507508

508509
Also Windows Container makes use of `--exec-opt` for special purpose. Docker user
509510
can specify default container isolation technology with this, for example:
510511

511-
$ docker daemon --exec-opt isolation=hyperv
512+
$ dockerd --exec-opt isolation=hyperv
512513

513514
Will make `hyperv` the default isolation technology on Windows, without specifying
514515
isolation value on daemon start, Windows isolation technology will default to `process`.
515516

516517
## Daemon DNS options
517518

518519
To 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

521522
To 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:
578579
1. Install the `ca-certificates` package for your distribution
579580
2. 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
614615
files. 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

670671
The `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
744745
When `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
827828
for `/var/lib/docker/tmp`. The `DOCKER_TMPDIR` and the data directory can be
828829
set 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

Comments
 (0)