Question from the Docker test

Connect an existing container to a Docker network

Medium

You've created a Docker network and want to connect an existing container to it. Which command(s) do you use?

Author: AxelStatus: Published(Update)Question passed 422 times
Edit
5
Community Evaluations
developer avatar
oumina
01/06/2024
i think the only correct one is docker network connect <network-name> <container-id> for the first one docker network connect <network-id> <container-name>, we should put network_name innstead of network_id