Docker-nginx: curl: (7) Failed to connect to localhost port 8080: Connection refused

Created on 24 Sep 2016  路  6Comments  路  Source: nginxinc/docker-nginx

I was a novice docker

I have done according to the document锛宐ut I can not connect to the host:port , please help me .

image

Most helpful comment

I am facing the same problem in windows 10 Home. Can any one help me solve the issue?

All 6 comments

docker version
Client:
Version: 1.9.1
API version: 1.21
Go version: go1.5.1
Git commit: a34a1d5
Built: Sat Nov 21 00:49:19 UTC 2015
OS/Arch: darwin/amd64

Server:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: 2016-08-18T17:52:38.255390991+00:00
OS/Arch: linux/amd64

image

sorry...

I ssh to the machine "default" , then execute "curl http://localhost:8080"

that is the right way ....

@gengu
I am facing the same issue, can you please tell me what solution you implemented?

if you are using a MacBook
Do not use 'localhost' to interview your server.
use '127.0.0.1' or network en0 ...

I am facing the same problem in windows 10 Home. Can any one help me solve the issue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HeyRobb picture HeyRobb  路  5Comments

sandersaares picture sandersaares  路  6Comments

nightlyone picture nightlyone  路  4Comments

hasancansaral picture hasancansaral  路  6Comments

lucacome picture lucacome  路  3Comments