sudo docker pull php:7.1.19-fpm
sudo docker search httpd:2.4.39
sudo docker pull httpd:2.4.39
//刚启动机会停止了服务
sudo docker run --name shop-php-apache-tmp -p 9800:80 -v $PWD/test1/:/usr/local/apache2/htdocs/ -v $PWD/apache/conf/:/usr/local/apache2/conf/ -v $PWD/apache/logs/:/usr/local/apache2/logs/ -d httpd:2.4.39
//通过日志文件查看
sudo docker logs 045533cb1cd0
提示apache 文件不存在或者是个目录