in a host machine (its LAN ip is 192.168.0.94), I have the following services 1) mysql , its docker-compose.yml is as below. It creates a bridge network called mysql_default,it is assigned a VIP 172.24.0.2 version: ‘2’ services: mysql: image: mysql:5.7 restart: always container_name: mysql volumes: – /etc/localtime:/etc/localtime – /data/mysql:/var/lib/mysql ports: – 3306:3306 2) nacos, its […]
Categories
Telnet issues between docker networks
- Post author By Server Questions
- Post date March 26, 2020
- No Comments on Telnet issues between docker networks
- Tags "-Dserver.port=8810", "-Dspring.profiles.active=prod", "-jar", "-Xmx150m", "-Xss512k", "/app/pica-user.jar"] networks: pica_net: external: true I find that it is not possible for user service to connect to Na, 3) and (4, and all of them are in the same bridge network and with a fixed IP address. version: "2" services: nacos1: container_, B, but failed in telnet to a, but failed in telnet to c and d 3) from inside user container: successfully telnet to e, c--, d 4) from inside nacos containers: successfully telnet to e, d from all of them ping to the above LAN IP or VIPs are all successful I'm wondering why there are failures in telnet as indicated in 2), f: '' }, for this service, I create a docker swarm in the host and a docker overlay network called pica_net and the service resides in this overlay network version, I have the following services 1) mysql, in a host machine (its LAN ip is 192.168.0.94), its docker-compose.yml is as below. It creates a bridge network called mysql_default,it is assigned a VIP 172.24.0.2 version: '2' se, its docker-compose.yml is as below. It starts 3 services, my observation is: 1) on the host machine, so I do a series of telnet connection test to the following IP-Port pairs a: (target at nacos containers with their VIPs in the overlay netw, successfully telnet to all the above IP-Port pairs 2) from inside mysql container: successfully telnet to a, what are the reasons? and how can I make the telnet successful?