Docker Community Forums

Share and learn in the Docker community.

Nginx docker containers can not be accessed by the browser of the local operating system,my OS is window10

1.My Local Operating System is windows 10.

2.docker version infomatiosn is:

Client:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built: Wed Oct 26 23:26:11 2016
OS/Arch: windows/amd64

Server:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built: Wed Oct 26 23:26:11 2016
OS/Arch: linux/amd64

When I use docker to start the nginx container in the local operating system to the browser can not access the nginx inside the docker container.
Specific operation command: “docker run -d -p 8081:8081 --name web nginx:1.10”.

How do I solve this problem?

How are you trying to access the nginx container? It’ll be available on localhost:8081