Update docker daemon to dockerd

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
This commit is contained in:
yuexiao-wang 2016-12-26 22:27:56 +08:00
parent d1dfc1a5ef
commit 62cc802f61
10 changed files with 14 additions and 16 deletions

View File

@ -31,7 +31,7 @@ stop on runlevel [!2345]
respawn respawn
script script
/usr/bin/docker daemon -H=tcp://0.0.0.0:2375 /usr/bin/dockerd -H=tcp://0.0.0.0:2375
end script end script
``` ```

View File

@ -21,7 +21,7 @@ type bridgeConfig struct {
// Config defines the configuration of a docker daemon. // Config defines the configuration of a docker daemon.
// These are the configuration settings that you pass // 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 { type Config struct {
CommonConfig CommonConfig

View File

@ -88,7 +88,7 @@ status information about the driver.
The devicemapper backend supports some options that you can specify The devicemapper backend supports some options that you can specify
when starting the docker daemon using the `--storage-opt` flags. 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 These options are currently documented both in [the man
page](../../../man/docker.1.md) and in [the online page](../../../man/docker.1.md) and in [the online

View File

@ -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. single `native.cgroupdriver` option is available.
The `native.cgroupdriver` option specifies the management of the container's 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 `systemd` and it is not available, the system errors out. If you omit the
`native.cgroupdriver` option,` cgroupfs` is used. `native.cgroupdriver` option,` cgroupfs` is used.
@ -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 Also Windows Container makes use of `--exec-opt` for special purpose. Docker user
can specify default container isolation technology with this, for example: can specify default container isolation technology with this, for example:
```bash ```console
$ sudo dockerd --exec-opt isolation=hyperv > dockerd --exec-opt isolation=hyperv
``` ```
Will make `hyperv` the default isolation technology on Windows. If no isolation Will make `hyperv` the default isolation technology on Windows. If no isolation
@ -746,14 +746,12 @@ To set the DNS server for all Docker containers, use:
$ sudo dockerd --dns 8.8.8.8 $ sudo dockerd --dns 8.8.8.8
``` ```
To set the DNS search domain for all Docker containers, use: To set the DNS search domain for all Docker containers, use:
```bash ```bash
$ sudo dockerd --dns-search example.com $ sudo dockerd --dns-search example.com
``` ```
## Insecure registries ## Insecure registries
Docker considers a private registry either secure or insecure. In the rest of Docker considers a private registry either secure or insecure. In the rest of

View File

@ -188,7 +188,7 @@ if [ $ec -eq 0 ]; then
FROM docker:$COMMITHASH FROM docker:$COMMITHASH
RUN hack/make.sh binary RUN hack/make.sh binary
RUN cp bundles/latest/binary/docker /bin/docker 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 EOF
else else
set -x set -x

View File

@ -9,7 +9,7 @@ import (
) )
var ( 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 // 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 // see http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=docker
DefaultHTTPPort = 2375 // Default HTTP Port DefaultHTTPPort = 2375 // Default HTTP Port

View File

@ -2,5 +2,5 @@
package opts 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" const DefaultHTTPHost = "localhost"

View File

@ -52,5 +52,5 @@ package opts
// to the delay if a user were to do 'docker run -H=tcp://localhost:2375...' // to the delay if a user were to do 'docker run -H=tcp://localhost:2375...'
// explicitly. // 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" const DefaultHTTPHost = "127.0.0.1"

View File

@ -17,7 +17,7 @@ the address Docker uses to advertise the node using the `--cluster-advertise`
flag. flag.
```bash ```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 ### Using consul
@ -27,7 +27,7 @@ the address Docker uses to advertise the node using the `--cluster-advertise`
flag. flag.
```bash ```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 ### Using zookeeper
@ -37,5 +37,5 @@ the address Docker uses to advertise the node using the `--cluster-advertise`
flag. flag.
```bash ```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>
``` ```

View File

@ -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: In general, Docker should be run as root, similar to the following:
```bash ```bash
docker daemon dockerd
``` ```
Generally, a `DOCKER_OPTS` variable of some kind is available for adding more Generally, a `DOCKER_OPTS` variable of some kind is available for adding more