Apache 2.4.18 + PHP 5.6.31 (Tester at Ubuntu 16.04.3)
docker build -t lippep/php5.6:latest .
docker run -d \
-p 80:80 \
-h 'my.domain.com' \
-v folder-to-www:/var/www/html \
-v folder-to-vhosts:/etc/apache2/sites-enabled \
--name any.name.here \
lippep/php5.6
Execute the following command:
docker-machine ls
If no machine was found, we must create one:
docker-machine create --driver virtualbox default
And add the virtual machine envs to Windows:
FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd default') DO %i