Public | Automated Build

Last pushed: 2 years ago
Short Description
Automated build forked from GM-Alex/docker-phpapp
Full Description

PHP development container


  • Apache
  • MySql
  • PHP 5.6, 5.5, 5.4 and 5.3 including ioncube and zend guard loader / zend optimizer
  • PhpMyAdmin
  • phpbrew
  • phpunit
  • Node.js
  • Sass
  • Bower
  • Grunt
  • Gulp
  • Tideways profiler


docker build -t <yourname>/phpapp .


docker run -d --name <containername> -e "PHP_VERSION=5.5" -v <yourappfolder>:/var/www:rw <yourname>/phpapp [-privileged]

You can choose php 5.5, 5.4, 5.3 and 5.2. Default if no env var is given is 5.5.


User: root
Pass: none (empty password!)

SSH user

User: root
Pass: root

More awesomeness with docker dns

Add the following to your docker config at /etc/default/docker (some times /etc/default/

DOCKER_OPTS="-d --bip= --dns= --dns="

Clone the following repository and follow the instructions of the repository to get the container running

git clone

DNS Setup for ubuntu

There are two ways to get the dns resolving working on Ubuntu

Using dnsmasq

Add the following line to /etc/NetworkManager/dnsmasq.d/dnsmasq.conf (if the file does not exists create it)


and run

sudo killall dnsmasq
sudo service network-manager restart

Using resolve.conf

Disable dnsmasq

sudo sed -i "s/dns=dnsmasq/#dns=dnsmasq/g" /etc/NetworkManager/NetworkManager.conf
sudo killall dnsmasq
sudo service network-manager restart
cat /etc/resolv.conf

Configure resolve.conf

Add the following line to /etc/resolvconf/resolv.conf.d/head


and run

resolvconf -u


Now you can access your app via http://<containername>.local.docker.

Docker Pull Command
Source Repository