docker_practice/advanced_network/quick_guide.md

27 lines
1.3 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

##
Docker
Docker
* `-b BRIDGE` `--bridge=BRIDGE`
* `--bip=CIDR` docker0
* `-H SOCKET...` `--host=SOCKET...` Docker
* `--icc=true|false`
* `--ip-forward=true|false`
* `--iptables=true|false` Docker iptables
* `--mtu=BYTES` MTU
2 Docker `docker run`
* `--dns=IP_ADDRESS...` 使DNS
* `--dns-search=DOMAIN...` DNS
`docker run` 使
* `-h HOSTNAME` `--hostname=HOSTNAME`
* `--link=CONTAINER_NAME:ALIAS`
* `--net=bridge|none|container:NAME_or_ID|host`
* `-p SPEC` `--publish=SPEC` 宿
* `-P or --publish-all=true|false` 宿