$ docker run -d \
--name mysql \
-e MYSQL_ROOT_PASSWORD=mysecretpassword \
mysql
$ export WPTHEME="/path/to/theme"
$ docker run -d \
--name wordpress \
--link mysql:mysql \
-p 80:80 \
-v "$WPTHEME":/var/www/html/wp-content/themes/my_theme \
wordpress
Point your browser to http://$DOCKERHOST.
If you're using boot2docker, $DOCKERHOST will be the host of your boot2docker VM (which you can get by running env
).