Problem using a Docker container with "port Exposure" on Windows

Asked

Viewed 456 times

0

I installed Docker on Windows these days but am having several problems running my container. Even with it standing, I can’t access the project from the browser using the Docker-machine IP, this is the command I’m using to run the container.

docker run -it -d -v /homer/user/html:/usr/share/nginx/html -p 80:80 myimage

Does anyone have any idea what it might be? While accessing the browser appears the message "CONECTION_REFUSED"

  • And I’m guessing your container is running something at gate 80, right? What are you running in it?

  • Add dockerfile to the question.

1 answer

1

Ever tried to put another door to see if it turns?

Example:

docker run -it -d -v /homer/user/html:/usr/share/nginx/html -p 3000:80 myimage

Browser other questions tagged

You are not signed in. Login or sign up in order to post.