Docker with Apache Ubuntu PHP Installing Docker You can click here Docker Installation Setting up the project ./Dockerfile ./app/index.php ./apache-config.conf Building the container docker build -t app . Running the container docker run -d -p 80:80 -v /data/server/app:/var/www/site/app --name app app Logging into the container docker exec -it app bash Stop/Remove the container docker stop app docker rm app Volume logs of container to host docker run -d -p 80:80 -v /data/server/app:/var/www/site/app -v /data/server/log:/var/log/apache2 --name app app