When trying to connect a dockerized PHP-Application to a MySQL-Container, I get the following error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Dockerfile:
FROM tutum/apache-php
RUN rm -fr /app
COPY . /app
ENV DB_HOST=192.168.99.100
ENV DB_NAME=azk
ENV DB_USER=root
ENV DB_PW=my-secret-pw
If I do not use PDO, the connection works, so there musst be something wrong with PDO, but I have no idea what...