tomcat - Docker container inaccessible from host -


I am trying to run the Tomcat application server on a Docker Container. The server is working, but I can not access it from the host machine.

Command which I'm going to start the container

  Docker Run-D-P9080: 9080 Example / Server   < P> I can type  
  curl localhost: 9080   

on a shell inside the container so that the server should yield. This works correctly though, if I try this from the host machine then I get the following error message:

  curl: (56) failure while retrieving data from colleagues   

If I repeat the process with a normal Apache server, then everything works the same way as <0 issue The server was configured by default to use the 'localhost' as a host that does not work properly with the docker. I have edited the configuration file to use host = "*" and now all of this works just as it should be.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -