I run docker with an image. docker run -d --cap-add=XHAUSE -p 80:80 -p 8080:8080 -p 8090:8090 web/imgimg:latest
I should be able to access the containers via localhost.
How can I start to debug this issue?
I can ping the IP address of the container. I can check $docker inspect , $docker info , logs etc.
When I running a command: $curl http://127.0.0.1:8080 it doesn't show anything.
Next thing is that $curl http://127.0.0.1:8090 shows 502 Bad Gateway, nginx/1.16.1
I run $ curl 172.17.0.2 I am receiving in my web browser an error: "something is wrong, get into the docker container and find a way how to fix it..."
The same error I see if I run http://localhost in my web brow
Do you have any idea what is wrong? I am new in docker.