Docker Hub上下载的nginx镜像,配置文件放在数据卷中吗?
迷茫
迷茫 2017-04-24 16:00:14
0
4
857

直接使用Docker Hub上下载的nginx镜像,但是自己的nginx的配置文件放在哪里呢?数据卷中吗?
如果是,那么要做什么设置吗,还是放在里面就不用管了,它会自动去读取?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(4)
phpcn_u1582

I still prefer to put it on the host and use -v to mount it to the container

为情所困

If it is the testing stage, it is recommended to map the data volume, and when deploying the production environment, it is recommended to mirror it.

迷茫

Generally, you should mount the local configuration file, use -v to mount, the nginx image description page of Docker Hub has usage instructions: https://hub.docker.com/_/nginx/

左手右手慢动作

-v mount. It can be placed in the image during deployment.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!