Why is inter-container communication in Docker the default?

I read a little about the relationship between Docker containers. The flag -—iccallows all containers to interact with each other. By default, the flag is set by default.

As I understand it, it will ignore any Ad EXPOSE/ -—expose. They are executed only if the parameter is —-iccset to false.

  • So why do we open ports in the first place?
  • Or why isc not set to false by default?
+4
source share
1 answer

. EXPOSE - . . .

, , -P .

, Docker , , , , .

ICC, --iptables ( iptables) , . , iptables -, Docker . , - , , .

+3

All Articles