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

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -