Skip to content

Commit 73c1184

Browse files
authored
Merge pull request docker-library#1637 from infosiftr/tomcat
Update Tomcat, especially to note the removal of the default webapps
2 parents ab0ce85 + 9e858ac commit 73c1184

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

tomcat/content.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,28 @@ Apache Tomcat (or simply Tomcat) is an open source web server and servlet contai
88

99
# How to use this image.
1010

11+
**Note:** as of [docker-library/tomcat#181](https://github.com/docker-library/tomcat/pull/181), the upstream-provided (example) webapps are *not* enabled by default, per [upstream's security recommendations](https://tomcat.apache.org/tomcat-9.0-doc/security-howto.html#Default_web_applications), but are still available under the `webapps.dist` folder within the image to make them easier to re-enable.
12+
1113
Run the default Tomcat server (`CMD ["catalina.sh", "run"]`):
1214

1315
```console
14-
$ docker run -it --rm %%IMAGE%%:8.0
16+
$ docker run -it --rm %%IMAGE%%:9.0
1517
```
1618

1719
You can test it by visiting `http://container-ip:8080` in a browser or, if you need access outside the host, on port 8888:
1820

1921
```console
20-
$ docker run -it --rm -p 8888:8080 %%IMAGE%%:8.0
22+
$ docker run -it --rm -p 8888:8080 %%IMAGE%%:9.0
2123
```
2224

23-
You can then go to `http://localhost:8888` or `http://host-ip:8888` in a browser.
25+
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).
2426

25-
The default Tomcat environment in the image for versions 7 and 8 is:
27+
The default Tomcat environment in the image is:
2628

2729
CATALINA_BASE: /usr/local/tomcat
2830
CATALINA_HOME: /usr/local/tomcat
2931
CATALINA_TMPDIR: /usr/local/tomcat/temp
3032
JRE_HOME: /usr
3133
CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
3234

33-
The default Tomcat environment in the image for version 6 is:
34-
35-
CATALINA_BASE: /usr/local/tomcat
36-
CATALINA_HOME: /usr/local/tomcat
37-
CATALINA_TMPDIR: /usr/local/tomcat/temp
38-
JRE_HOME: /usr
39-
CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar
40-
4135
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`.

0 commit comments

Comments
 (0)