...
Create a UDF bridge network
docker network create <network name>
Start a container and connect it to the bridge
docker run --rm --net <network name> --name <container name> -d <image name>
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?
...