Hello, I’m new with docker and need help. I am testing a telemtry enviroment using a docker compose project that I downloaded from internet, first I try on windows using docker destok it works well, but we need to switch to another server, and when I try to run it on a ubuntu VM over vmware workstation I cant access the apps from the ousite network, but doing some testing I noticed that the ports open only on the loopback address and not the ip address of the host. I share otuputs:
Running containers:
andres@ansible:/tig-stack$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7d3c26b2e698 telegraf:1.19 "/entrypoint.sh tele…" 38 seconds ago Up 37 seconds 8092/udp, 8125/udp, 8094/tcp, 0.0.0.0:57000->57000/tcp, :::57000->57000/tcp tig-stack-telegraf-1
6e904b0b0901 grafana/grafana-oss:8.4.3 "/run.sh" 55 minutes ago Up 37 seconds 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp tig-stack-grafana-1
29010fbc7a2c
For example, grafana is using TCP 3000 port:
Using localhost port is open:
andres@ansible:/tig-stack$ telnet localhost 3000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
But using host ip addres port does not open:
andres@ansible:/tig-stack$ telnet 10.60.104.126 3000
Trying 10.60.104.126...
andres@ansible:/tig-stack$ ip add | grep 10.60.104.126
inet 10.60.104.126/26 brd 10.60.104.127 scope global ens33
andres@ansible:/tig-stack$ ping 10.60.104.126
PING 10.60.104.126 (10.60.104.126) 56(84) bytes of data.
64 bytes from 10.60.104.126: icmp_seq=1 ttl=64 time=0.037 ms
64 bytes from 10.60.104.126: icmp_seq=2 ttl=64 time=0.059 ms
^C
--- 10.60.104.126 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1006ms
rtt min/avg/max/mdev = 0.037/0.048/0.059/0.011 ms
I can connect the Ubuntu VM via ssh, so I think I miss somethong to map the container to the host ip address… thanks so much…