Docker Community Forums

Share and learn in the Docker community.

[solved] Connect to docker host from docker container

(Rasodu) #1

I have MySQL running on docker host. I would like phpfpm running in the container to connect to MySQL server on the host machine. Which ip address should I?

These are the ip addresses in ipconfig output:
Ethernet adapter vEthernet (DockerNAT) :
Wireless LAN adapter Wi-Fi: :

docker exec -it <container-name> /bin/bash
ping //Doesn’t work
ping //Doesn’t work

(Rasodu) #2

The problem occurred due to firewall settings on my computer. I have McAfee installed. Enabling ‘ICMP ping requests’ solves the problem.