docker - What does Docker use to host/run web applications?
问题描述
I may still see Containers as a minimalistic VM like images on a Docker engine. (Docker noob) But still, On VM's I host and run My web application on IIS, tomcat,... on port 80, 443, or whatever... What does Docker use as a web hosting service ? nginx? how does it work anyway?
解决方案
Docker is like a recipe. You take everything you need to run some code and you put it on a list. That list of ingredients is then able to be cooked anywhere that can run docker; where as a VM is like creating a new kitchen every time you need to run something. Because Docker is not creating a whole new instance of an OS, and is just running a layer above; the amount of time it takes to start a docker image is multitudes faster than a VM. This is a basic google search away, so in future it would be in your best interest to just look this up.
推荐阅读
- web-applications - What is the correct way to store specific (one off) data and information, permanently in a web-application?
- python - 得到错误 IndexError: ('list index out of range', u'occured at index 193')
- rust - 为什么函数调用中的尾随逗号不是语法错误?
- python - 在 Python 中读取 EEPROM 地址并执行操作
- c# - 将 IdentityUser 列表添加到 Entity Framework Core 中的实体时未创建联接表
- matlab - 在运行 Fmask 4.0 的 Matlab 运行时应用程序中加载共享库时出错
- c# - 如何将空参数传递给基类构造函数c#
- pytorch - 为什么pytorch中的简单seq2seq总是返回NaN?
- c - strcpy() 将字符串从 struct 成员复制到 char 数组失败。为什么?
- c# - 在本地启动 Azure 云服务时显示“加密设置已更改”消息