docker_practice/appendix/command/docker.md

71 lines
3.8 KiB
Go
Raw Normal View History

# (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/)