自己搭建的Tomcat ,容器能正常启动,就是网页访问不了,有人知道什么原因吗?
#DockerFile文件如下:
#启动容器:
[[email protected] tomcat]# docker run -d -p 8787:8080 --name tomcat04 -v /home/xiayuan/build/tomcat/test:/usr/local/apache-tomcat-9.0.37/webapps/test -v /home/xiayuan/build/tomcat/tomcatlogs:/usr/local/apache-tomcat-9.0.37/logs diytomcat:1.0
c55f45be3b09da2b0bdcb00d5d02e082c54945f97054f33b96f78ee08465c61f
截止到这一步都是正常的
内部测试失败
[[email protected] tomcat]# curl localhost:8787
curl: (56) Recv failure: Connection reset by peer