Last updated 5 years ago
docker run -p "80:80" -itd mattrayner/lamp:latest-1804
sudo docker run -p "80:80" --name lamp -v /lamp/www:/var/www -v /lamp/mysql:/var/lib/mysql -v /lamp/app:/app -itd mattrayner/lamp:latest-1804
root@853fb59e2bb7:~# cd /var/www root@853fb59e2bb7:/var/www# mkdir html root@853fb59e2bb7:/var/www# cd html root@853fb59e2bb7:/var/www/html# echo '<?php phpinfo();?>' > index.php