Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: connect ECONNREFUSED 127.0.0.1:8080 #9

Open
drewstone opened this issue Oct 4, 2019 · 7 comments
Open

Error: connect ECONNREFUSED 127.0.0.1:8080 #9

drewstone opened this issue Oct 4, 2019 · 7 comments

Comments

@drewstone
Copy link

I setup the docker instance as documented, it seems to be running, though I cannot connect or run my own tests.

@junderw
Copy link
Member

junderw commented Oct 4, 2019

you need to expose the ports via the -p option

ie.

docker run -p 8080:8080 xxxxx

this tells docker to bind the 8080 port of the container to the 8080 port of host's localhost

@drewstone
Copy link
Author

drewstone commented Oct 4, 2019 via email

@junderw
Copy link
Member

junderw commented Oct 4, 2019

run

sudo netstat -tulpn

and see if anything is listening to localhost 8080 and what process it is.

@drewstone
Copy link
Author

drewstone commented Oct 4, 2019

With the full command I get: netstat: n: unknown or uninstrumented protocol
With partial commands I do not see any localhost.
If I try to run the docker run command again I get:

docker: Error response from daemon: driver failed programming external connectivity on endpoint goofy_jang (<NUM>): Bind for 0.0.0.0:8080 failed: port is already allocated.

@junderw
Copy link
Member

junderw commented Oct 4, 2019

Are you using the image from docker hub or did you build it yourself?

@drewstone
Copy link
Author

I built it myself after cloning this repo.

@junderw
Copy link
Member

junderw commented Oct 5, 2019

try using the image from docker hub.

let me know what happens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants