For some circumstances we cannot use mysql inside docker by sharing volume and we need to use mysql outside docker under the same machine, the big question here is: once you use mysql as daemon on MAC OS and we need have access from docker: which is localhost? localhost inside docker or localhost on my own machine? I haven't found any documentation taking about this so far. I hope this help and forget about bridge connections, sharing volumes, link, or another crazy stuff. Enjoy!
$ docker stop test-mysql $ docker start test-mysql $ docker inspect test-mysql grep IPAddress 'IPAddress': '172.17.0.21', Our IP address just changed to 172.17.0.21. If you had an application that connects to this container via the old IP address, the application would not get connected anymore.
docker.for.mac.localhost
as your mysql domain (this is theonly way to connect something from the container to your localhost machine on MAC OS).or even:
For some circumstances we cannot use mysql inside docker by sharing volume and we need to use mysql outside docker under the same machine, the big question here is: once you use mysql as daemon on MAC OS and we need have access from docker: which is localhost? localhost inside docker or localhost on my own machine? I haven't found any documentation taking about this so far. Download minecraft 1.5.2 for mac. I hope this help and forget about bridge connections, sharing volumes, link, or another crazy stuff. Enjoy!
docker.for.mac.localhost
as your mysql domain (this is theonly way to connect something from the container to your localhost machine on MAC OS).or even: