Update command

Signed-off-by: Kang HuaiShuai <khs1994@khs1994.com>
pull/432/head
Kang HuaiShuai 2019-11-14 09:21:31 +08:00
parent 5cb92f63cf
commit c836c65a78
No known key found for this signature in database
GPG Key ID: 0A380828B1C243A7
5 changed files with 140 additions and 118 deletions

View File

@ -329,7 +329,15 @@ module.exports = {
'appendix/repo/redis', 'appendix/repo/redis',
], ],
}, },
{
title: "Docker 命令",
collapsable: false,
children: [
'appendix/command/', 'appendix/command/',
'appendix/command/docker',
'appendix/command/dockerd',
]
},
'appendix/best_practices', 'appendix/best_practices',
'appendix/debug', 'appendix/debug',
'appendix/resources', 'appendix/resources',

View File

@ -156,6 +156,8 @@
* [MongoDB](appendix/repo/mongodb.md) * [MongoDB](appendix/repo/mongodb.md)
* [Redis](appendix/repo/redis.md) * [Redis](appendix/repo/redis.md)
* [Docker ](appendix/command/README.md) * [Docker ](appendix/command/README.md)
* [ (docker)](appendix/command/docker.md)
* [ (dockerd)](appendix/command/dockerd.md)
* [Dockerfile ](appendix/best_practices.md) * [Dockerfile ](appendix/best_practices.md)
* [ Docker](appendix/debug.md) * [ Docker](appendix/debug.md)
* [](appendix/resources.md) * [](appendix/resources.md)

View File

@ -10,120 +10,4 @@ Docker 命令有两大类,客户端命令和服务端命令。前者是主要
`man docker` `docker help` `man docker` `docker help`
##
* `--config=""` `~/.docker`
* `-D=true|false`使 debug
* `-H, --host=[]` Docker unix `unix:///path/to/socket` `fd://socketfd` tcp `tcp://[host[:port]]` `unix:///var/run/docker.sock`
* `-l, --log-level="debug|info|warn|error|fatal"`
* `--tls=true|false` Docker TLS
* `--tlscacert=/.docker/ca.pem`TLS CA
* `--tlscert=/.docker/cert.pem`TLS
* `--tlscert=/.docker/key.pem`TLS
* `--tlsverify=true|false` TLS
## dockerd
* `--api-cors-header=""`CORS CORS访 "*"
* `--authorization-plugin=""`
* `-b=""` `none` `--bip`
* `--bip=""` `docker0` CIDR ; `-b`
* `--cgroup-parent=""` cgroup fs cgroup `/docker`systemd cgroup `system.slice`
* `--cluster-store=""` `Swarm`
* `--cluster-advertise=""`访 `host:port` `interface:port`
* `--cluster-store-opt=""`
* `--config-file="/etc/docker/daemon.json"`daemon
* `--containerd=""`containerd
* `-D, --debug=true|false`使 Debug false
* `--default-gateway=""` IPv4
* `--default-gateway-v6=""` IPv6
* `--default-ulimit=[]` ulimit
* `--disable-legacy-registry=true|false`访
* `--dns=""`使 DNS
* `--dns-opt=""`DNS
* `--dns-search=[]`DNS
* `--exec-opt=[]`
* `--exec-root=""` `/var/run/docker`
* `--fixed-cidr=""` IPv4
* `--fixed-cidr-v6=""` IPv6
* `-G, --group=""` unix `docker`
* `-g, --graph=""`Docker `/var/lib/docker`
* `-H, --host=[]` Docker daemon unix `unix:///path/to/socket` `fd://socketfd` tcp `tcp://[host[:port]]` `unix:///var/run/docker.sock`
* `--icc=true|false` daemon true
* `--insecure-registry=[]`访
* `--ip=""` IP `0.0.0.0`
* `--ip-forward=true|false` Docker IP
* `--ip-masq=true|false`访
* `--iptables=true|false` Docker iptables true
* `--ipv6=true|false` IPv6
* `-l, --log-level="debug|info|warn|error|fatal"`
* `--label="[]"`
* `--log-driver="json-file|syslog|journald|gelf|fluentd|awslogs|splunk|etwlogs|gcplogs|none"` `json-file`
* `--log-opt=[]`
* `--mtu=VALUE` `mtu`
* `-p=""` daemon PID `/var/run/docker.pid`
* `--raw-logs`
* `--registry-mirror=<scheme>://<host>` `docker pull` 使
* `-s, --storage-driver=""`使
* `--selinux-enabled=true|false` SELinux falseSELinux overlay
* `--storage-opt=[]`
* `--tls=true|false` Docker daemon TLS
* `--tlscacert=/.docker/ca.pem`TLS CA
* `--tlscert=/.docker/cert.pem`TLS
* `--tlscert=/.docker/key.pem`TLS
* `--tlsverify=true|false` TLS
* `--userland-proxy=true|false`使 true
* `--userns-remap=default|uid:gid|user:group|user|uid` UID GID
##
`docker COMMAND --help`
* `attach`
* `build` Dockerfile
* `commit`
* `cp`宿
* `create`
* `diff`
* `events`
* `exec`
* `export` `tar`
* `history`
* `images`
* `import` `tar`
* `info`
* `inspect`
* `kill` ()
* `load` tar
* `login` Docker
* `logout` Docker
* `logs` log
* `network` Docker
* `node` swarm /
* `pause`
* `port` nat
* `ps`
* `pull`Docker
* `push` Docker
* `rename`
* `restart`
* `rm`
* `rmi`
* `run`
* `save` tar
* `search` Docker index
* `service` Docker
* `start`
* `stats`使
* `stop`
* `swarm` Docker swarm 退
* `tag`
* `top`
* `unpause`
* `update`
* `version` Docker
* `volume` Docker volume
* `wait`退
## Docker
![Docker ](../_images/cmd_logic.png)

View File

@ -0,0 +1,70 @@
# (docker)
##
* `--config=""` `~/.docker`
* `-D=true|false`使 debug
* `-H, --host=[]` Docker unix `unix:///path/to/socket` `fd://socketfd` tcp `tcp://[host[:port]]` `unix:///var/run/docker.sock`
* `-l, --log-level="debug|info|warn|error|fatal"`
* `--tls=true|false` Docker TLS
* `--tlscacert=/.docker/ca.pem`TLS CA
* `--tlscert=/.docker/cert.pem`TLS
* `--tlscert=/.docker/key.pem`TLS
* `--tlsverify=true|false` TLS
##
`docker COMMAND --help`
* `attach`
* `build` Dockerfile
* `commit`
* `cp`宿
* `create`
* `diff`
* `events`
* `exec`
* `export` `tar`
* `history`
* `images`
* `import` `tar`
* `info`
* `inspect`
* `kill` ()
* `load` tar
* `login` Docker
* `logout` Docker
* `logs` log
* `network` Docker
* `node` swarm /
* `pause`
* `port` nat
* `ps`
* `pull`Docker
* `push` Docker
* `rename`
* `restart`
* `rm`
* `rmi`
* `run`
* `save` tar
* `search` Docker index
* `service` Docker
* `start`
* `stats`使
* `stop`
* `swarm` Docker swarm 退
* `tag`
* `top`
* `unpause`
* `update`
* `version` Docker
* `volume` Docker volume
* `wait`退
## Docker
![Docker ](../_images/cmd_logic.png)
##
* [](https://docs.docker.com/engine/reference/commandline/cli/)

View File

@ -0,0 +1,58 @@
# (dockerd)
## dockerd
* `--api-cors-header=""`CORS CORS访 "*"
* `--authorization-plugin=""`
* `-b=""` `none` `--bip`
* `--bip=""` `docker0` CIDR ; `-b`
* `--cgroup-parent=""` cgroup fs cgroup `/docker`systemd cgroup `system.slice`
* `--cluster-store=""` `Swarm`
* `--cluster-advertise=""`访 `host:port` `interface:port`
* `--cluster-store-opt=""`
* `--config-file="/etc/docker/daemon.json"`daemon
* `--containerd=""`containerd
* `-D, --debug=true|false`使 Debug false
* `--default-gateway=""` IPv4
* `--default-gateway-v6=""` IPv6
* `--default-ulimit=[]` ulimit
* `--disable-legacy-registry=true|false`访
* `--dns=""`使 DNS
* `--dns-opt=""`DNS
* `--dns-search=[]`DNS
* `--exec-opt=[]`
* `--exec-root=""` `/var/run/docker`
* `--fixed-cidr=""` IPv4
* `--fixed-cidr-v6=""` IPv6
* `-G, --group=""` unix `docker`
* `-g, --graph=""`Docker `/var/lib/docker`
* `-H, --host=[]` Docker daemon unix `unix:///path/to/socket` `fd://socketfd` tcp `tcp://[host[:port]]` `unix:///var/run/docker.sock`
* `--icc=true|false` daemon true
* `--insecure-registry=[]`访
* `--ip=""` IP `0.0.0.0`
* `--ip-forward=true|false` Docker IP
* `--ip-masq=true|false`访
* `--iptables=true|false` Docker iptables true
* `--ipv6=true|false` IPv6
* `-l, --log-level="debug|info|warn|error|fatal"`
* `--label="[]"`
* `--log-driver="json-file|syslog|journald|gelf|fluentd|awslogs|splunk|etwlogs|gcplogs|none"` `json-file`
* `--log-opt=[]`
* `--mtu=VALUE` `mtu`
* `-p=""` daemon PID `/var/run/docker.pid`
* `--raw-logs`
* `--registry-mirror=<scheme>://<host>` `docker pull` 使
* `-s, --storage-driver=""`使
* `--selinux-enabled=true|false` SELinux falseSELinux overlay
* `--storage-opt=[]`
* `--tls=true|false` Docker daemon TLS
* `--tlscacert=/.docker/ca.pem`TLS CA
* `--tlscert=/.docker/cert.pem`TLS
* `--tlscert=/.docker/key.pem`TLS
* `--tlsverify=true|false` TLS
* `--userland-proxy=true|false`使 true
* `--userns-remap=default|uid:gid|user:group|user|uid` UID GID
##
* [](https://docs.docker.com/engine/reference/commandline/dockerd/)