Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Dockerfile and associated other stuff for building a LAMP stack
Branch: master
Pull request Compare This branch is 2 commits behind jbfink:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

(N.B. the way that Docker handles permissions may vary depending on your current Docker version. If you're getting errors like

dial unix /var/run/docker.sock: permission denied

when you run the below commands, simply use sudo. This is a known issue.)

This repo contains a recipe for making a Docker container, with Apache, MySQL and PHP. To build, make sure you have Docker installed, clone this repo somewhere, and then run:

docker build -t <yourname>/lampstack .

Or, alternately, build DIRECTLY from the github repo like some sort of SUPER FUTURISTIC FLYING CAR MECHANIC:

docker build -t <yourname>/lampstack git://

Then run it! Woo!

docker run -d <yourname>/lampstack

Check docker logs after running to see MySQL root password, as so

echo $(docker logs <container-id> | sed -n 1p)
Something went wrong with that request. Please try again.