I have started two containers and linked them with “–link”. But, do I need to add EXPOSE in each other’s Dockerfile to let them communicate?
I have two services that are deployed on two containers. Only a one ports need to be exposed for external use, but the two containers require communicate with each other with a wide range of port. And they may change over time.
So I wonder if there’s any way to let the containers communicate with each other freely.