Enable network communication between different docker containers
If we have 2 different docker networks, host from docker-compose network – 172.15.0.5 and second host is through docker start
mybash# iptables -L -n | grep DOCKER-ISOLATION DOCKER-ISOLATION-STAGE-1 all -- 0.0.0.0/0 0.0.0.0/0 |
iptables --flush DOCKER-ISOLATION-STAGE-1 |
After this command containers from 172.15.0.5 can communicate with 172.16.0.2