Unless you want only specific containers to access the MySQL port, the docker bridge IP should be enough, but I wrote about a workaround here:
rimelek
(Ákos Takács)
7
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Access Host Port from Container on localhost without --net host | 3 | 7205 | November 11, 2016 | |
| Unable to access host MySQL from container under Linux | 14 | 17312 | July 27, 2023 | |
| Access to docker mysql from host | 1 | 632 | March 18, 2020 | |
| [Solved] How to interact with other ports of host | 5 | 1035 | March 11, 2018 | |
| Docker Container mysql is only getting connected with it's container IP address not with localhost | 0 | 565 | March 2, 2020 |