![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
docker学习
夜宿荒寺
这个作者很懒,什么都没留下…
展开
-
docker下nginx+php-fpm+mysql集成
接前文docker下nginx+php-fpm集成 准备 默认情况下,php-fpm没有pdo扩展,需要先安装pdo扩展才行 安装pdo扩展 进入container docker exec -it $your_container_id /bin/bash 安装pdo_mysql扩展 docker-php-ext-install pdo pdo_mysql 或者 pecl instal...原创 2020-04-08 17:20:56 · 385 阅读 · 0 评论 -
docker更改mirrors
创建文件 /etc/docker/daemon.json ,并在其中添加如下内容 { "registry-mirrors":["https://docker.mirrors.ustc.edu.cn"] } 重启docker systemctl daemon-reload systemctl restart docker ...原创 2020-04-08 16:16:14 · 817 阅读 · 0 评论 -
docker下nginx+php-fpm集成
本文基于centos7+docker19.03.5 镜像下载 nginx镜像下载 docker pull nginx php-fpm镜像下载 docker pull php:7.4-fpm 运行php-fpm 我们所有的项目都是放在 /data1/www/htdocs/目录下 通过以下命令启动php-fpm镜像: docker run -d -p 9000:9000 --name ph...原创 2020-04-08 13:13:43 · 419 阅读 · 0 评论