CmdID / docker / docker network
docker network connect
Connect a container to a network Docker CLI reference
7 options Its page in the Docker CLI reference
Options
--aliasAdd network-scoped alias for the container--driver-optdriver options for the network--gw-priorityHighest gw-priority provides the default gateway.--ip6IPv6 address (e.g., 2001:db8::33)--ipIPv4 address (e.g., 172.30.100.104)--link-local-ipAdd a link-local address for the container--linkAdd link to another container