You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tomcat/content.md
+6-12Lines changed: 6 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -8,34 +8,28 @@ Apache Tomcat (or simply Tomcat) is an open source web server and servlet contai
8
8
9
9
# How to use this image.
10
10
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
+
11
13
Run the default Tomcat server (`CMD ["catalina.sh", "run"]`):
12
14
13
15
```console
14
-
$ docker run -it --rm %%IMAGE%%:8.0
16
+
$ docker run -it --rm %%IMAGE%%:9.0
15
17
```
16
18
17
19
You can test it by visiting `http://container-ip:8080` in a browser or, if you need access outside the host, on port 8888:
18
20
19
21
```console
20
-
$ docker run -it --rm -p 8888:8080 %%IMAGE%%:8.0
22
+
$ docker run -it --rm -p 8888:8080 %%IMAGE%%:9.0
21
23
```
22
24
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).
24
26
25
-
The default Tomcat environment in the image for versions 7 and 8 is:
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
-
41
35
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