Hi heroes,
I got an issue that telnet remote_ip:3801 failed in specific container, but in other containers on same host machine or host machine itself, telnet is ok. any possible reasons?
docker exec -it 2ef371fcb2a5 sh
/ # wget 192.168.48.228:3801
Connecting to 192.168.48.228:3801 (192.168.48.228:3801)
…/after some minutes
wget: download timed out
Things i tried:
-
restart docker service
-
restart this specific container
-
docker ps -a
c9ff05acfa3b — telnet ok
2ef371fcb2a5 —telnet not ok -
docker network ls
NETWORK ID NAME DRIVER SCOPE
c232929497d8 bridge bridge local
09673c18fd4f host host local
10fa3f44955b insight_bridge bridge local
aef4c8b7d35d none null local -
docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
inet 172.17.0.1/16 scope global docker0 -
docker network inspect insight_bridge
“Name”: “insight_bridge”,
“Id”: “10fa3f44955b7ff39644812be45357e0fd607dd39d673a215b6da12a4ad75ba8”,
“Created”: “2024-05-27T01:08:41.866400382+08:00”,
“Scope”: “local”,
“Driver”: “bridge”,
“EnableIPv6”: false,
“IPAM”: {
“Driver”: “default”,
“Options”: {},
“Config”: [
{
“Subnet”: “172.18.0.0/16”,
“Gateway”: “172.18.0.1” -
docker inspect c9ff05acfa3b
“NetworkID”: “10fa3f44955b7ff39644812be45357e0fd607dd39d673a215b6da12a4ad75ba8”,
“EndpointID”: “ec03e2bff7d77e84d75b18b51dc2ed428cdf0e116d67523761116ac8be2bd146”,
“Gateway”: “172.18.0.1”,
“IPAddress”: “172.18.0.3”, -
docker inspect 2ef371fcb2a5
“NetworkID”: “10fa3f44955b7ff39644812be45357e0fd607dd39d673a215b6da12a4ad75ba8”,
“EndpointID”: “d424c1302cef640413bd4a87ad88b8d22ec3cabb165d9d4eff4da9541e2335a9”,
“Gateway”: “172.18.0.1”,
“IPAddress”: “172.18.0.6”, -
hostname machine
ip route show
default via 192.168.48.1 dev eth0 proto static metric 100
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
172.18.0.0/16 dev br-10fa3f44955b proto kernel scope link src 172.18.0.1
192.168.48.0/24 dev eth0 proto kernel scope link src 192.168.48.234 metric 100 -
docker exec -it c9ff05acfa3b sh -c ‘ip route show’
default via 172.18.0.1 dev eth0
172.18.0.0/16 dev eth0 scope link src 172.18.0.3 -
docker exec -it 2ef371fcb2a5 sh -c ‘ip route show’
default via 172.18.0.1 dev eth0
172.18.0.0/16 dev eth0 scope link src 172.18.0.6