Skip to content

Commit

Permalink
Merge pull request moby#29697 from yuexiao-wang/fix-docker-daemon
Browse files Browse the repository at this point in the history
Update docker daemon to dockerd
  • Loading branch information
vdemeester committed Jan 4, 2017
2 parents 355f2ae + 62cc802 commit 6129e6c
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion contrib/vagrant-docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ stop on runlevel [!2345]
respawn
script
/usr/bin/docker daemon -H=tcp://0.0.0.0:2375
/usr/bin/dockerd -H=tcp://0.0.0.0:2375
end script
```

Expand Down
2 changes: 1 addition & 1 deletion daemon/config_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type bridgeConfig struct {

// Config defines the configuration of a docker daemon.
// These are the configuration settings that you pass
// to the docker daemon when you launch it with say: `docker daemon -e windows`
// to the docker daemon when you launch it with say: `dockerd -e windows`
type Config struct {
CommonConfig

Expand Down
2 changes: 1 addition & 1 deletion daemon/graphdriver/devmapper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ status information about the driver.

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

These options are currently documented both in [the man
page](../../../man/docker.1.md) and in [the online
Expand Down
8 changes: 3 additions & 5 deletions docs/reference/commandline/dockerd.md
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ with the `--exec-opt` flag. All the flag's options have the `native` prefix. A
single `native.cgroupdriver` option is available.

The `native.cgroupdriver` option specifies the management of the container's
cgroups. You can specify only specify `cgroupfs` or `systemd`. If you specify
cgroups. You can only specify `cgroupfs` or `systemd`. If you specify
`systemd` and it is not available, the system errors out. If you omit the
`native.cgroupdriver` option,` cgroupfs` is used.
Expand All @@ -730,8 +730,8 @@ Setting this option applies to all containers the daemon launches.
Also Windows Container makes use of `--exec-opt` for special purpose. Docker user
can specify default container isolation technology with this, for example:
```bash
$ sudo dockerd --exec-opt isolation=hyperv
```console
> dockerd --exec-opt isolation=hyperv
```
Will make `hyperv` the default isolation technology on Windows. If no isolation
Expand All @@ -746,14 +746,12 @@ To set the DNS server for all Docker containers, use:
$ sudo dockerd --dns 8.8.8.8
```
To set the DNS search domain for all Docker containers, use:
```bash
$ sudo dockerd --dns-search example.com
```
## Insecure registries
Docker considers a private registry either secure or insecure. In the rest of
Expand Down
2 changes: 1 addition & 1 deletion hack/Jenkins/W2L/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ if [ $ec -eq 0 ]; then
FROM docker:$COMMITHASH
RUN hack/make.sh binary
RUN cp bundles/latest/binary/docker /bin/docker
CMD docker daemon -D -H tcp://0.0.0.0:$port_inner $daemon_extra_args
CMD dockerd -D -H tcp://0.0.0.0:$port_inner $daemon_extra_args
EOF
else
set -x
Expand Down
2 changes: 1 addition & 1 deletion opts/hosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

var (
// DefaultHTTPPort Default HTTP Port used if only the protocol is provided to -H flag e.g. docker daemon -H tcp://
// DefaultHTTPPort Default HTTP Port used if only the protocol is provided to -H flag e.g. dockerd -H tcp://
// These are the IANA registered port numbers for use with Docker
// see http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=docker
DefaultHTTPPort = 2375 // Default HTTP Port
Expand Down
2 changes: 1 addition & 1 deletion opts/opts_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

package opts

// DefaultHTTPHost Default HTTP Host used if only port is provided to -H flag e.g. docker daemon -H tcp://:8080
// DefaultHTTPHost Default HTTP Host used if only port is provided to -H flag e.g. dockerd -H tcp://:8080
const DefaultHTTPHost = "localhost"
2 changes: 1 addition & 1 deletion opts/opts_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ package opts
// to the delay if a user were to do 'docker run -H=tcp://localhost:2375...'
// explicitly.

// DefaultHTTPHost Default HTTP Host used if only port is provided to -H flag e.g. docker daemon -H tcp://:8080
// DefaultHTTPHost Default HTTP Host used if only port is provided to -H flag e.g. dockerd -H tcp://:8080
const DefaultHTTPHost = "127.0.0.1"
6 changes: 3 additions & 3 deletions pkg/discovery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ the address Docker uses to advertise the node using the `--cluster-advertise`
flag.

```bash
$ docker daemon -H=<node_ip:2376> --cluster-advertise=<node_ip:2376> --cluster-store etcd://<etcd_ip1>,<etcd_ip2>/<path>
$ dockerd -H=<node_ip:2376> --cluster-advertise=<node_ip:2376> --cluster-store etcd://<etcd_ip1>,<etcd_ip2>/<path>
```

### Using consul
Expand All @@ -27,7 +27,7 @@ the address Docker uses to advertise the node using the `--cluster-advertise`
flag.

```bash
$ docker daemon -H=<node_ip:2376> --cluster-advertise=<node_ip:2376> --cluster-store consul://<consul_ip>/<path>
$ dockerd -H=<node_ip:2376> --cluster-advertise=<node_ip:2376> --cluster-store consul://<consul_ip>/<path>
```

### Using zookeeper
Expand All @@ -37,5 +37,5 @@ the address Docker uses to advertise the node using the `--cluster-advertise`
flag.

```bash
$ docker daemon -H=<node_ip:2376> --cluster-advertise=<node_ip:2376> --cluster-store zk://<zk_addr1>,<zk_addr2>/<path>
$ dockerd -H=<node_ip:2376> --cluster-advertise=<node_ip:2376> --cluster-store zk://<zk_addr1>,<zk_addr2>/<path>
```
2 changes: 1 addition & 1 deletion project/PACKAGERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ appropriate for your distro's init script to live there too!).
In general, Docker should be run as root, similar to the following:

```bash
docker daemon
dockerd
```

Generally, a `DOCKER_OPTS` variable of some kind is available for adding more
Expand Down

0 comments on commit 6129e6c

Please sign in to comment.