Skip to content

Commit 81cc8eb

Browse files
committed
Change all docker -d to docker daemon
Signed-off-by: Qiang Huang <[email protected]>
1 parent 5d54f50 commit 81cc8eb

File tree

15 files changed

+27
-27
lines changed

15 files changed

+27
-27
lines changed

api/client/hijack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func (cli *DockerCli) hijack(method, path string, setRawTerminal bool, in io.Rea
167167
}
168168
if err != nil {
169169
if strings.Contains(err.Error(), "connection refused") {
170-
return fmt.Errorf("Cannot connect to the Docker daemon. Is 'docker -d' running on this host?")
170+
return fmt.Errorf("Cannot connect to the Docker daemon. Is 'docker daemon' running on this host?")
171171
}
172172
return err
173173
}

contrib/vagrant-docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ stop on runlevel [!2345]
3131
respawn
3232
3333
script
34-
/usr/bin/docker -d -H=tcp://0.0.0.0:2375
34+
/usr/bin/docker daemon -H=tcp://0.0.0.0:2375
3535
end script
3636
```
3737

daemon/config_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var (
1818

1919
// Config defines the configuration of a docker daemon.
2020
// These are the configuration settings that you pass
21-
// to the docker daemon when you launch it with say: `docker -d -e lxc`
21+
// to the docker daemon when you launch it with say: `docker daemon -e lxc`
2222
type Config struct {
2323
CommonConfig
2424

daemon/config_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type bridgeConfig struct {
2020

2121
// Config defines the configuration of a docker daemon.
2222
// These are the configuration settings that you pass
23-
// to the docker daemon when you launch it with say: `docker -d -e windows`
23+
// to the docker daemon when you launch it with say: `docker daemon -e windows`
2424
type Config struct {
2525
CommonConfig
2626

daemon/graphdriver/devmapper/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ status information about the driver.
7575

7676
The devicemapper backend supports some options that you can specify
7777
when starting the docker daemon using the `--storage-opt` flags.
78-
This uses the `dm` prefix and would be used something like `docker -d --storage-opt dm.foo=bar`.
78+
This uses the `dm` prefix and would be used something like `docker daemon --storage-opt dm.foo=bar`.
7979

8080
These options are currently documented both in [the man
8181
page](../../../man/docker.1.md) and in [the online

docs/articles/https/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cert: build
1313
certs: cert
1414

1515
run:
16-
sudo docker -d -D --tlsverify --tlscacert=ca.pem --tlscert=server-cert.pem --tlskey=server-key.pem -H=0.0.0.0:6666 --pidfile=$(pwd)/docker.pid --graph=$(pwd)/graph
16+
sudo docker daemon -D --tlsverify --tlscacert=ca.pem --tlscert=server-cert.pem --tlskey=server-key.pem -H=0.0.0.0:6666 --pidfile=$(pwd)/docker.pid --graph=$(pwd)/graph
1717

1818
client:
1919
sudo docker --tls --tlscacert=ca.pem --tlscert=cert.pem --tlskey=key.pem -H=$(HOST):6666 version

docs/articles/systemd.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ directory including the following:
4848
EnvironmentFile=-/etc/sysconfig/docker-storage
4949
EnvironmentFile=-/etc/sysconfig/docker-network
5050
ExecStart=
51-
ExecStart=/usr/bin/docker -d -H fd:// $OPTIONS \
51+
ExecStart=/usr/bin/docker daemon -H fd:// $OPTIONS \
5252
$DOCKER_STORAGE_OPTIONS \
5353
$DOCKER_NETWORK_OPTIONS \
5454
$BLOCK_REGISTRY \
@@ -108,7 +108,7 @@ by a new configuration as follows:
108108

109109
[Service]
110110
ExecStart=
111-
ExecStart=/usr/bin/docker -d -H fd:// --bip=172.17.42.1/16
111+
ExecStart=/usr/bin/docker daemon -H fd:// --bip=172.17.42.1/16
112112

113113
If you fail to specify an empty configuration, Docker reports an error such as:
114114

docs/misc/release-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ repository](https://github.com/docker/docker/blob/master/CHANGELOG.md).
5252
| Logging drivers | The new logging driver follows the exec driver and storage driver concepts already available in Engine today. There is a new option `--log-driver` to `docker run` command. See the `run` reference for a [description on how to use this option](https://docs.docker.com/reference/run/#logging-drivers-log-driver). |
5353
| Image digests | When you pull, build, or run images, you specify them in the form `namespace/repository:tag`, or even just `repository`. In this release, you are now able to pull, run, build and refer to images by a new content addressable identifier called a “digest” with the syntax `namespace/repo@digest`. See the the command line reference for [examples of using the digest](https://docs.docker.com/reference/commandline/cli/#listing-image-digests). |
5454
| Custom cgroups | Containers are made from a combination of namespaces, capabilities, and cgroups. Docker already supports custom namespaces and capabilities. Additionally, in this release we’ve added support for custom cgroups. Using the `--cgroup-parent` flag, you can pass a specific `cgroup` to run a container in. See [the command line reference for more information](https://docs.docker.com/reference/commandline/cli/#create). |
55-
| Ulimits | You can now specify the default `ulimit` settings for all containers when configuring the daemon. For example:`docker -d --default-ulimit nproc=1024:2048` See [Default Ulimits](https://docs.docker.com/reference/commandline/cli/#default-ulimits) in this documentation. |
55+
| Ulimits | You can now specify the default `ulimit` settings for all containers when configuring the daemon. For example:`docker daemon --default-ulimit nproc=1024:2048` See [Default Ulimits](https://docs.docker.com/reference/commandline/cli/#default-ulimits) in this documentation. |
5656
| Commit and import Dockerfile | You can now make changes to images on the fly without having to re-build the entire image. The feature `commit --change` and `import --change` allows you to apply standard changes to a new image. These are expressed in the Dockerfile syntax and used to modify the image. For details on how to use these, see the [commit](https://docs.docker.com/reference/commandline/cli/#commit) and [import](https://docs.docker.com/reference/commandline/cli/#import). |
5757

5858
### Known issues in Engine

docs/reference/run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ To mount a FUSE based filesystem, you need to combine both `--cap-add` and
877877

878878

879879
If the Docker daemon was started using the `lxc` exec-driver
880-
(`docker -d --exec-driver=lxc`) then the operator can also specify LXC options
880+
(`docker daemon --exec-driver=lxc`) then the operator can also specify LXC options
881881
using one or more `--lxc-conf` parameters. These can be new parameters or
882882
override existing parameters from the [lxc-template.go](
883883
https://github.com/docker/docker/blob/master/daemon/execdriver/lxc/lxc_template.go).

experimental/network_overlay.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Using `libkv`, the user can plug any of the supported Key-Value store (such as c
88
User can specify the Key-Value store of choice using the `--kv-store` daemon flag, which takes configuration value of format `PROVIDER:URL`, where
99
`PROVIDER` is the name of the Key-Value store (such as consul, etcd or zookeeper) and
1010
`URL` is the url to reach the Key-Value store.
11-
Example : `docker -d --kv-store=consul:localhost:8500`
11+
Example : `docker daemon --kv-store=consul:localhost:8500`
1212

1313
Send us feedback and comments on [#14083](https://github.com/docker/docker/issues/14083)
1414
or on the usual Google Groups (docker-user, docker-dev) and IRC channels.

0 commit comments

Comments
 (0)