
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
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/2be52abb3101e3e36a31cce78cd188fba3373de8/11.0/jdk25/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/2be52abb3101e3e36a31cce78cd188fba3373de8/11.0/jre25/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/2be52abb3101e3e36a31cce78cd188fba3373de8/11.0/jdk25/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/2be52abb3101e3e36a31cce78cd188fba3373de8/11.0/jre25/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/2be52abb3101e3e36a31cce78cd188fba3373de8/11.0/jdk21/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/2be52abb3101e3e36a31cce78cd188fba3373de8/11.0/jre21/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/2be52abb3101e3e36a31cce78cd188fba3373de8/11.0/jdk21/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/2be52abb3101e3e36a31cce78cd188fba3373de8/11.0/jre21/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/2be52abb3101e3e36a31cce78cd188fba3373de8/11.0/jdk17/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/2be52abb3101e3e36a31cce78cd188fba3373de8/11.0/jre17/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/2be52abb3101e3e36a31cce78cd188fba3373de8/11.0/jdk17/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/2be52abb3101e3e36a31cce78cd188fba3373de8/11.0/jre17/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jdk25/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jre25/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jdk25/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jre25/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jdk21/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jre21/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jdk21/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jre21/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jdk17/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jre17/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jdk17/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jre17/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jdk11/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jre11/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jdk11/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/8670d4532332093de2e28cec26552254f3e33bdc/10.1/jre11/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jdk25/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jre25/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jdk25/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jre25/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jdk21/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jre21/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jdk21/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jre21/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jdk21/corretto-al2/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jdk17/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jre17/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jdk17/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jre17/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jdk17/corretto-al2/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jdk11/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jre11/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jdk11/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jre11/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jdk11/corretto-al2/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jdk8/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jre8/temurin-noble/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jdk8/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/9.0/jre8/temurin-jammy/Dockerfile
https://github.com/docker-library/tomcat/blob/14e32859a97b0a5c088efdf3434d746479daec69/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 镜像,适用于 不同场景 等不同场景: