我已经启动了一个容器,其中一些端口打开,并尝试从浏览器访问Tomcat的Web界面,但它无法正常工作。
0.body
->>1.overall container (has `display: flex; flex-direction: column`)
->>2.a label block (vertical, has fixed height)
->>2.a label block (vertical, has fixed height)
->>2.the container block (vertical, has `flex: 1`)
->>3.inner-block one (should be horizontal)
->>3.inner-block two (should be horizontal)
->>3.inner-block third (should be horizontal)
->>2.a label block (vertical, has fixed height)
->>2.a label block (vertical, has fixed height)
我正在使用带有docker instaled的CentOS7。
由于
答案 0 :(得分:5)
这很简单:
EXPOSE
命令)-p
缺失)这有效:
docker run -ti --rm --name server -p 9090:8080 tomcat:8.0
在浏览器中打开localhost:9090
。