Quickly learn How to connect a running Docker container to a Docker network with WhaleDeck Shorts. Clear, step-by-step guides for Docker.
The answer is quite simple. The following command shows how to connect the Docker container my_container to the Docker network my_network.
docker network connect my_network my_container