I'm trying to understand inter-container communication with Docker.
I have a two containers.
Container A has an exposed port which is reachable on localhost:777
.
So if I use nmap -p 777 localhost
I can see that the port is open.
I enter container B:
docker exec -it containerB bash
From within Container B is it possible for me to use the same nmap
command from above to see if port 777 on Container A is open?