How to access tomcat running in docker container from browser?

前端 未结 5 1512
盖世英雄少女心
盖世英雄少女心 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:37

    You may be missing a port forwarding rule in the VirtualBox settings.

    boot2docker vm > settings > Network > NAT adapter > Port forwarding
    

    Note the last entry:

    enter image description here

    This way you have configured the whole chain: hostPort:virtualBoxPort then virtualBoxPort:containerPort, as shown in the following diagram: enter image description here

提交回复
热议问题