Docker Quick Networking Guide
Below is a list of commands related to the Docker network.
Some of these command options are only configurable when the Docker service is started and will not take effect immediately.
--bridge=BRIDGEspecifies the bridge to which the container is mounted
--bip=CIDRcustom masker0 mask
--host=SOCKET...Channel for the Docker server to receive commands
--icc=true|falseWhether communication between containers is supported
--ip-forward=true|falsePlease see the communication between the containers below
--iptables=true|falseyou allow Docker to add iptables rules?
--mtu=BYTES MTUin the –mtu=BYTES container network
The following two command options can be specified either when starting the service or when starting the container. Specifying the Docker service when it is started will become the default value, and the default value of the setting can be overwritten when the docker run is executed later.
--dns=IP_ADDRESS...Use the specified DNS server
--dns-search=DOMAIN...Specify the DNS search domain
Finally, these options are only used when the docker run executed because it is specific to the container’s properties.
--hostname=HOSTNAMEconfiguration container hostname
--link=CONTAINER_NAME:ALIASadds a connection to another container
--net=bridge|none|container:NAME_or_ID|hostconfigures the bridge mode of the container
-p SPEC or --publish=SPECmaps the container port to the host host
-P or --publish-all=true|falsemaps all ports of the container to the host
## Contributor - Sangam Biradar