both machines use docker.
one is a dedicated web server, and the ip is 192.168.0.100, with a route 172.17.0. Universe 16 pointing to 192.168.0.130. The
docker network segment is 172.19.0.0Universe 16. Ip:172.19.0.2 of enabled docker-web
the other one acts as a database server. The ip is 192.168.0.130, with a route 172.19.0. 0. Universe 16 pointing to 192.168.0.100. The
docker network segment is 172.17.0.0Universe 16. Ip:172.17.0.2 of enabled docker-mysql
from the 192.168.0.100 web server, the direct connection to docker-mysql, was successful, and the ping enabled docker-mysql gateway 172.17.0.1
then came the problem: docker-web 172.19.0.2 enabled from 192.168.0.100 could not connect to docker-mysql 172.17.0.2
Gateway can be reached, but docker-mysql, cannot be reached. This should be because there is no default route in docker-mysql. Then I checked
.docker inspect mysql
"IPAddress": "172.17.0.2",
"Gateway": "172.17.0.1"
this is a little confusing. May I ask why?