Site icon 咖啡偶-IT日常

docker 安裝 apache + php + mysql (lamp)

https://hub.docker.com/r/mattrayner/lamp

輸入:

docker run --name  --restart always -p "80:80" -v ${PWD}/app:/app -v ${PWD}/mysql:/var/lib/mysql mattrayner/lamp:latest-1604-php5

ps. latest-1604-php5 是http 2.4 + mysql 5.6 + php 5

Exit mobile version