There are things I did not get when we used --net. How do the containers communicate ?
Mine could not find the MySQL container with the previous "mysql" alias. After running docker inspect mysql-db I used the IP stated from the output at NetworkSettings.Networks.isolated_network.Gateway as the mysql host parameter.
I doubt that this is a reliable solution, how should I proceed to make it easier ?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
There are things I did not get when we used
--net
. How do the containers communicate ?Mine could not find the MySQL container with the previous "mysql" alias. After running
docker inspect mysql-db
I used the IP stated from the output atNetworkSettings.Networks.isolated_network.Gateway
as the mysql host parameter.I doubt that this is a reliable solution, how should I proceed to make it easier ?