在docker上运行tomcat将无法从broswer访问

时间:2018-03-21 06:03:36

标签: docker tomcat

我在ubuntu-16.04上安装了一个docker。

并编写此代码。

docker run -it -d --name tomcat-test -p 8888:8080 tomcat:8.0
  1. docker ps - >确认它正常运行
  2. on ubuntu shell - >卷曲http://localhost:8888 - >确定
  3. on broswer - > localhost:8888或127.0.0.1:8888或172.17.0.2:8888(docker0 ip) - >没有..
  4. 出了什么问题?

0 个答案:

没有答案