dsf5632
2016-07-15 14:57
浏览 216
已采纳

Docker容器中的Symfony环境

I want to run my Symfony3 app out of Docker container. As I understand I can install/create multiple images with docker and spin them up into a container that will hold my app.

I been going through some docks on Docker on how I may do this, I seen that I can have a docker images such as:

  • Ubuntu
  • PHP
  • Nginx -> As I understand it is like an Apache server, so in theory it will handle all the requests and responses.

But I still find it hard to understand the concept of spinning multiple images into one container.

Also I have seen something called DockerFile which apparently can can build a my dev environment into one container that I can also work with.

Question 1: Can someone please clarify the whole process I still find it hard to wrap my head around it.

Question 2: How can I build DockerFile and what is it?

图片转代码服务由CSDN问答提供 功能建议

我想从Docker容器中运行我的Symfony3应用程序。 据我所知,我可以使用docker安装/创建多个图像并将它们旋转到一个容纳我的应用程序的容器中。</ p>

我一直在Docker上的一些底座上了解我如何做到这一点 ,我看到我可以有一个docker图像,如:</ p>

  • Ubuntu </ li>
  • PHP </ li>
  • Nginx - &GT; 据我所知,它就像一台Apache服务器,理论上它会处理所有请求和响应。</ li> </ ul>

    但我仍然觉得很难理解 将多个图像旋转到一个容器中。</ p>

    此外,我还看到了一个名为DockerFile的东西,它显然可以将我的开发环境构建到一个我也可以使用的容器中。</ p>

    问题1: 如果有人请澄清整个过程我仍然难以理解它。</ p>

    问题2: 我如何构建DockerFile以及什么 是吗?</ p> </ div>

1条回答 默认 最新

相关推荐 更多相似问题