03-28-2022 06:22 AM - edited 08-15-2022 11:21 PM
Hi
i deployed a Docker image on a Cat 9300 following this Guide
but now i get the error Message that the 1000Eyes Docker can not resolve hostnames .
For troubleshooting i have done the following already
Added a ip Address on the Switch in the same vlan where the Docker Container is connected to .
- I can see the MAC Address from the Docker on the Switch-Vlan
- I can ping the default gw from the Switch
- I can not ping the Docker IP Address.
Switched to the Docker session and checked
- eth0 is up and running.
- routing entries are correct.
- /etc/resolve.conf have the correct dns entries
- Checked ARP entries ,
ooops there i see that the ARP entry is incomplete for the Default GW , but why ?
Config snipped
!
app-hosting appid thousandeyes
app-vnic AppGigabitEthernet trunk
vlan 1 guest-interface 0
guest-ipaddress 192.168.1.2 netmask 255.255.255.0
app-default-gateway 192.168.1.1 guest-interface 0
app-resource docker
run-opts 1 "-e TEAGENT_ACCOUNT_TOKEN=woefj8zup3oijeörofijp3984riuöeoifjöü8rj3p498hpwerifjp39498rzp3ruefhpw8"
run-opts 2 "--hostname CISCO-DOCKER"
prepend-pkg-opts
name-server0 8.8.4.4
name-server1 8.8.8.8
!
interface AppGigabitEthernet1/0/1
switchport trunk allowed vlan 1
switchport mode trunk
spanning-tree portfast trunk
end
IOS 17.03.04
Any ideas what could be wrong ?
Regards Markus
08-17-2022 05:19 PM
Hello @maamann,
I found an external article which states the following:
"The host has a changing IP address (or none if you have no network access). We recommend that you connect to the special DNS name host.docker.internal
which resolves to the internal IP address used by the host. This is for development purpose and will not work in a production environment outside of Docker Desktop for Windows / Mac.
You can also reach the gateway using gateway.docker.internal
."
- How to connect to the Docker host from inside a Docker container?
I think this may be helpful for you.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide