#To run tomcat
docker run -ti --rm --name run-my-tomcat -p 9090:8080 --cap-add SYS_PTRACE navinkrishnan/tomcat8
Now visit http://localhost:9090/
#To copy war file inside the container
docker cp hello-world.war run-my-tomcat:/var/lib/tomcat8/webapps/hello-world.war
Content type
Image
Digest
Size
495.1 MB
Last updated
over 8 years ago
docker pull navinkrishnan/tomcat8