How to access application URL hosted in docker container?

前端 未结 2 1986
梦如初夏
梦如初夏 2021-02-14 23:02

I hosted our application inside a docker container. When I run docker ps command, it gave info like below.

CONTAINER ID        IMAGE                         


        
2条回答
  •  借酒劲吻你
    2021-02-14 23:46

    Try curl http://localhost:32795/testapp/login.jsp.

    Your docker ps shows that container's port 8080 is bound to external port 32795 : [...] 0.0.0.0:32795->8080/tcp [...]

提交回复
热议问题