How to access tomcat running in docker container from browser?

前端 未结 5 1514
盖世英雄少女心
盖世英雄少女心 2020-12-05 05:00

I am running tomcat in my docker container from the Official Repo.

docker pull tomcat

And as per guidelines stated in the homepage I\'ve ru

5条回答
  •  不思量自难忘°
    2020-12-05 05:21

    option -p has argument hostPort:containerPort so in your case port 8080 (inside your docker image) is mapped to port 8888 on the host (your windows box). This means you should be able to find the tomcat on your Windows box by appending :8888 to your URL, just like you did with curl.

提交回复
热议问题