Getting WordPress working

I have Docker for Mac running and I know it runs WordPress fine using Kalabox.

I was trying to spin up my own WordPress installations. Following these instructions ->

These are the commands I used and what has and has not worked.

docker pull mariadb:latest

Then I ran:

docker run --name wpmariadb -d -v $(pwd):/var/lib/mysql -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 mariadb:latest

I tested the database using SequelPro and it worked fine.

Then I attempted to spin up the WordPress installation as follows:

docker pull wordpress:4.8.1-fpm


docker run --name wp-test -d --link wpmariadb:mysql -p 8080:80 wordpress:4.8.1-fpm

I check that the containers are running, but I get nothing at localhost:8080

Any ideas what I am doing wrong?


If you run the container in non-detached mode, are there any errors?