Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a UDF bridge network

  2. docker network create <network name>

  3. Start a container and connect it to the bridge

  4. docker run --rm --net <network name> --name <container name> -d <image name>

  5. Address another container using its name as the host namehostname and its port number (the one inside the container, NOT the one exposed to the host)

Can you connect an existing container to a network?

...