Closed Polpetta closed 8 years ago
This isn't the correct fix; the address for a container port is provided by <CONTAINERNAME>_PORT_3306_TCP_ADDR
.
The correct fix is that ${MYSQL_LINKED_CONTAINER}
probably needs to go through capitalization because Docker will convert a linked container named mariadb
to MARIADB_PORT_3306_TCP_ADDR
, and the current code will check mariadb_PORT_3306_TCP_ADDR
.
Sorry for replying so late. Ok, when I have time I will try in a different way! :blush: For now I close this pull request.
Hello, I found that this issue was already submitted ( #29 ), so I fixed it. I try it on my PC and seems to work. I used this commands:
Now
MYSQL_HOST
have theMYSQL_LINKED_CONTAINER
value when linking a container, and now it works.