Remote access to webserver in docker container

前端 未结 4 639
有刺的猬
有刺的猬 2020-12-28 23:44

I\'ve started using docker for dev, with the following setup:

  • Host machine - ubuntu server.
  • Docker container - webapp w/ tomcat server (using https).<
4条回答
  •  时光取名叫无心
    2020-12-29 00:19

    Correct me if I'm wrong but as far as I'm aware docker host creates a private network for it's containers which is inaccessible from the outside. That said your best bet would probably be to access the container at {host_IP}:{mapped_port}.

提交回复
热议问题