
Maintained by:
https://github.com/docker-library/tomcat
Where to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Dockerfile linkshttps://github.com/docker-library/tomcat/blob/9ff10dbef0bc50f30cbab61b58379b04ae854283/11.0/jdk25/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/9ff10dbef0bc50f30cbab61b58379b04ae854283/11.0/jre25/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/9ff10dbef0bc50f30cbab61b58379b04ae854283/11.0/jdk25/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/9ff10dbef0bc50f30cbab61b58379b04ae854283/11.0/jre25/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/9ff10dbef0bc50f30cbab61b58379b04ae854283/11.0/jdk21/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/9ff10dbef0bc50f30cbab61b58379b04ae854283/11.0/jre21/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/9ff10dbef0bc50f30cbab61b58379b04ae854283/11.0/jdk21/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/9ff10dbef0bc50f30cbab61b58379b04ae854283/11.0/jre21/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/9ff10dbef0bc50f30cbab61b58379b04ae854283/11.0/jdk17/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/9ff10dbef0bc50f30cbab61b58379b04ae854283/11.0/jre17/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/9ff10dbef0bc50f30cbab61b58379b04ae854283/11.0/jdk17/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/9ff10dbef0bc50f30cbab61b58379b04ae854283/11.0/jre17/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jdk25/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jre25/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jdk25/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jre25/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jdk21/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jre21/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jdk21/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jre21/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jdk17/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jre17/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jdk17/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jre17/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jdk11/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jre11/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jdk11/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/e037bd61ab72194bcab77357be6458fefb4f6f97/10.1/jre11/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jdk25/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jre25/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jdk25/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jre25/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jdk21/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jre21/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jdk21/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jre21/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jdk21/corretto-al2/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jdk17/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jre17/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jdk17/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jre17/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jdk17/corretto-al2/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jdk11/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jre11/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jdk11/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jre11/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jdk11/corretto-al2/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jdk8/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jre8/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jdk8/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jre8/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/1cb1c2cc4a7807f1e3fd6e48d033fa53d***/9.0/jdk8/corretto-al2/Dockerfile
Where to file issues:
https://github.com/docker-library/tomcat/issues?q=
Supported architectures: (https://github.com/docker-library/official-images#architectures-other-than-amd64)
https://hub.docker.com/r/amd64/tomcat/, https://hub.docker.com/r/arm32v7/tomcat/, https://hub.docker.com/r/arm64v8/tomcat/, https://hub.docker.com/r/ppc64le/tomcat/, https://hub.docker.com/r/riscv64/tomcat/, https://hub.docker.com/r/s390x/tomcat/
Published image artifact details:
https://github.com/docker-library/repo-info/blob/master/repos/tomcat (https://github.com/docker-library/repo-info/commits/master/repos/tomcat)
(image metadata, transfer size, etc)
Image updates:
https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Ftomcat
https://github.com/docker-library/official-images/blob/master/library/tomcat (https://github.com/docker-library/official-images/commits/master/library/tomcat)
Source of this description:
https://github.com/docker-library/docs/tree/master/tomcat (https://github.com/docker-library/docs/commits/master/tomcat)
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. In the simplest config Tomcat runs in a single operating system process. The process runs a Java virtual machine (JVM). Every single HTTP request from a browser to Tomcat is processed in the Tomcat process in a separate thread.
***.org/wiki/Apache_Tomcat
!https://raw.githubusercontent.com/docker-library/docs/8e31eb93a02d504d0cfe1da435aa31b377fc627d/tomcat/logo.pngLogo © Apache Software Fountation
Note: as of https://github.com/docker-library/tomcat/pull/181, the upstream-provided (example) webapps are not enabled by default, per upstream's security recommendations, but are still available under the webapps.dist folder within the image to make them easier to re-enable.
Run the default Tomcat server (CMD ["catalina.sh", "run"]):
console$ docker run -it --rm tomcat:9.0
You can test it by visiting http://container-ip:8080 in a browser or, if you need access outside the host, on port 8888:
console$ docker run -it --rm -p 8888:8080 tomcat:9.0
You can then go to http://localhost:8888 or http://host-ip:8888 in a browser (noting that it will return a 404 since there are no webapps loaded by default).
The default Tomcat environment in the image is:
CATALINA_BASE: /usr/local/tomcat CATALINA_HOME: /usr/local/tomcat CATALINA_TMPDIR: /usr/local/tomcat/temp JRE_HOME: /usr CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
The configuration files are available in /usr/local/tomcat/conf/. By default, no user is included in the "manager-gui" role required to operate the "/manager/html" web application. If you wish to use this app, you must define such a user in tomcat-users.xml.
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in https://github.com/docker-library/repo-info/tree/master/repos/tomcat.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
以下是 tomcat 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务