docker_practice/advanced_network/quick_guide.md

27 lines
1.3 KiB
Go
Raw Normal View History

#
2014-09-05 15:50:54 +08:00
Docker
2014-09-05 15:50:54 +08:00
Docker
2014-09-05 15:50:54 +08:00
2017-11-29 10:23:42 +08:00
* `-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
2014-09-05 15:50:54 +08:00
`docker run` 使
2017-11-29 10:23:42 +08:00
* `-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` 宿