0
Help us understand the problem. What are the problem?

posted at

Docker 環境で Jetty または Tomcat を使って Webアプリを実行する。

前提

  • Windows環境
  • 「c:\usr\webapps」にWARを配置しておく。

コマンド

Jetty 最新版を利用する場合

docker run --rm -it -p 8000:8000 -p 8080:8080 -v c:/usr/webapps:/var/lib/jetty/webapps jetty

Tomcat 9.0 を利用する場合

docker run --rm -it -p 8000:8000 -p 8080:8080 -v c:/usr/webapps:/usr/local/tomcat/webapps tomcat:9.0

以上。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
0
Help us understand the problem. What are the problem?