I have Java web app in docker container.
Now container is exposed on host's port 8080 from container's port 8080 by running docker run command.
docker run -d -p 8080:8080 --name myTomcat -v $(pwd)/out/artifacts/DockerJavaWebAppWarExploded:/usr/local/tomcat/webapps/ tomcat:latest
There is no other process running on 8080 port ,but i am not able to access the application from browser http://localhost:8080/.
Container logs :
Please help.
It would be appreciated.
docker container logs myTomcat
or launch without-d
option to see them. – Michał Krzywańskidocker logs
, not an image and definitely not a screenshot of a terminal window. – David Mazedocker exec
and curl at port 8080 – Kevin