docker network connect <NETWORK> <container>
Connect a container to a network
Arguments
Name | Description |
---|---|
NETWORK | |
container |
Options
Name | Description |
---|---|
--alias <strings> | Add network-scoped alias for the container |
--driver-opt <strings> | Driver options for the network |
--ip <string> | IPv4 address (e.g., 172.30.100.104) |
--ip6 <string> | IPv6 address (e.g., 2001:db8::33) |
--link <list> | Add link to another container |
--link-local-ip <strings> | Add a link-local address for the container |