Apache PHP 5 and MYSQL dev image
10K+
$ docker build -t eugeneware/docker-apache-php .
Use docker volumes to expose your web content to the apache web server.
# run docker apache php
$ CONTAINER=$(docker run -d -p 80 -p 3306 -v /your/path/to/serve:/var/www/html eugeneware/docker-apache-php)
# get the http port
$ docker port $CONTAINER 80
0.0.0.0:49206
# get the mysql port
$ docker port $CONTAINER 3306
0.0.0.0:49205
# get [dockerhost] IP reading 'inet addr' value
$ ifconfig docker0 | grep 'inet addr'
inet addr:172.17.42.1 Bcast:0.0.0.0 Mask:255.255.0.0
$ mysql -h172.17.42.1 -uroot -P 49205
Content type
Image
Digest
Size
182.3 MB
Last updated
over 10 years ago
docker pull defreitas/docker-apache-php