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

Popular posts from this blog

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

java - How to handle special characters while unmarshalling xml in JAXB -

4x4 Matrix in Python -