Nginx image in Docker reflects bind but does not show correct content

143 views Asked by At

I'm using docker toolbox in my Win 7 desktop, I'm creating a container from nginx using the following command:

docker container run -p 8082:80 -v //c/Users/TestDocker/:/usr/share/nginx/ -d --rm nginx

The content in the container reflects what it is in my host folder:

enter image description here

In the container:

enter image description here

But the actual page display is this:

enter image description here

Obviously the same locally:

enter image description here

Nginx configuration file points to the same location as the bind is:

enter image description here

Any cloud on what am I doing wrong?

1

There are 1 answers

1
el_tigro On

This is not worthy of an answer but I don't have the reputation to comment:

Your docker command maps 8082:80 but you're using port 8083 in the browser. Is there a chance you're interacting with the wrong container?