osx - Connecting to localhost mysql server from inside docker container on macOS -
how can connect localhost mysql server docker container on macos ? 1 way using --add-host requires me pass name "myhost". there way in macos references localhost inside docker container refer docker host ?
you should able connect mysql running on host machine using host machine actual ip address. in macos, try find ip command ifconfig
. using ip assigned en0
i.e. ethernet interface should work. call ip within container.
*localhost or 127.0.0.1 or 0.0.0.0 doesnt call host machine local container itself.
Comments
Post a Comment