docker/network-connect

Connect Container

Connect a container to a network

network
management

Command

docker network connect

Explanation

Adds a container to an existing network while the container is running.

Examples

Connect container to network

docker network connect my_network my_container