Steps to reproduce:
-
create a new docker-compose.yml
-
paste the example from the website and save:
wordpress:
image: wordpress
links:
- db:mysql
ports:
- 8080:80
db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: example
-
$ docker-compose up
-
wait a little
-
go to the exposed web front end
Error establishing a database connection
I created a more detailed explanation (plus full log) here:
http://stackoverflow.com/questions/34746853/docker-wordpress-container-cant-connect-to-database-container
EDIT: I just tried using:
image: wordpress:4.4
and the exmaple did work so it seems to be a bug introduced between 4.4 and 4.4.1
Steps to reproduce:
create a new docker-compose.yml
paste the example from the website and save:
wordpress:
image: wordpress
links:
- db:mysql
ports:
- 8080:80
db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: example
$ docker-compose up
wait a little
go to the exposed web front end
Error establishing a database connection
I created a more detailed explanation (plus full log) here:
http://stackoverflow.com/questions/34746853/docker-wordpress-container-cant-connect-to-database-container
EDIT: I just tried using:
image: wordpress:4.4
and the exmaple did work so it seems to be a bug introduced between 4.4 and 4.4.1