Sign inSign up

asanchez75/tomcat

By asanchez75

•Updated over 8 years ago

It exposes the folders /usr/local/tomcat/webapps and /usr/local/tomcat/conf of a Tomcat container

Image
0

250

asanchez75/tomcat repository overview

docker run -it -p 8083:8080 -v ${PWD}/webapps:/usr/local/tomcat/webapps -v ${PWD}/conf:/usr/local/tomcat/conf -d asanchez75/tomcat:8.5.23-jre8

for a Centos with SElinux enabled

docker run --security-opt label:disable -it -p 8083:8080 -v ${PWD}/webapps:/usr/local/tomcat/webapps -v ${PWD}/conf:/usr/local/tomcat/conf -d asanchez75/tomcat:8.5.23-jre8

The dockerfile is

https://bitbucket.org/asanchez75/docker-tomcat/src⁠

References https://www.projectatomic.io/blog/2015/06/using-volumes-with-docker-can-cause-problems-with-selinux/⁠ http://www.projectatomic.io/blog/2016/03/dwalsh_selinux_containers/⁠

Tag summary

Content type

Image

Digest

Size

290.9 MB

Last updated

over 8 years ago

docker pull asanchez75/tomcat:8.5-jdk8