Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat container vs Docker container

Tomcat is a servlet container. Docker is also related to containers. Why are they both called "containers"?

What is the difference between Tomcat containers and Docker containers?

like image 825
Johan Avatar asked Jan 27 '18 19:01

Johan


People also ask

What is Tomcat Docker container?

Apache Tomcat (or simply Tomcat) is an open source web server and servlet container developed by the Apache Software Foundation (ASF). Tomcat implements the Java Servlet and the JavaServer Pages (JSP) specifications from Oracle, and provides a "pure Java" HTTP web server environment for Java code to run in.

Is Tomcat server or container?

Apache Tomcat server: Apache Tomcat is a web container. It allows the users to run Servlet and JAVA Server Pages that are based on the web-applications. It can be used as the HTTP server. The performance of the Tomcat server is not as good as the designated web server.

Is Tomcat an application container?

Apache Tomcat —or, Tomcat for short — is a popular tool in enterprise infrastructure. And there are many ways in which Tomcat can shine as a Java application container. In this blog, we give an overview of Apache Tomcat, how it works, why it's used, and compare it to alternative web server environments.


1 Answers

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.

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 itself isn't really the container either, Docker manages the underlying OS to make it easier to run an image as a container.

So both the "construct" and the "something" are vastly different between Tomcat and Docker which makes the technical definitions vastly different too.

like image 129
Matt Avatar answered Oct 22 '22 00:10

Matt