简体   繁体   English

Tomcat容器与Docker容器

[英]Tomcat container vs Docker container

Tomcat is servlet container. Tomcat是servlet容器。 Docker is a "container". Docker是一个“容器”。

What do they do of similar to be called both containers? 它们被称为两个容器有什么相似之处? And where do they differ the most? 它们最大的不同之处是什么?

The term "container" here is only similar in the basic english definition of a "construct" that contains "something". 这里的“容器”仅在包含“某物”的“构造”的基本英语定义中相似。

Apache Tomcat is a Java process that contains J2EE servlets and JavaServer Pages. Apache Tomcat是一个Java进程,其中包含J2EE Servlet和JavaServer Pages。

A Docker container is an operating system (OS) construct that contains a usable OS (as close as it can get) seperate from the host OS (as seperate as it can). Docker容器是一种操作系统(OS)构造,其中包含一个与主机OS分离的可用OS(尽可能接近)。 Docker itself isn't really the container either, Docker manages the underlying OS to make a container easier to use. Docker本身也不是真正的容器,Docker管理底层操作系统以使容器更易于使用。

So both the "construct" and the "something" are vastly different between Tomcat and Docker which makes the technical definitions vastly different too. 因此,Tomcat和Docker之间的“构造”和“某物”都大相径庭,这也使技术定义也大相径庭。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM