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

docker - cant listen on localhost #357

Closed
awcoding opened this issue Apr 14, 2020 · 5 comments
Closed

docker - cant listen on localhost #357

awcoding opened this issue Apr 14, 2020 · 5 comments

Comments

@awcoding
Copy link

can't get checkr/flagr working with -p 127.0.0.1:18000:18000.
I tried it with both -e HOST=0.0.0.0 and -e "HOST=127.0.0.1". No joy.

am i missing something? I tried to workaround but firewall on this box is hellishy complicated and that option appears less accessible.

@marceloboeira
Copy link
Member

marceloboeira commented Apr 14, 2020

I got it working here with:

docker run -p 18000:18000 checkr/flagr

I don't believe you need to put the host before the port.

@awcoding
Copy link
Author

Thank you @marceloboeira. My goal is to listen on the localhost interface instead of all interfaces. Prefixing the 127.0.0.1 is docker's convention on how to do that. But it doesn't seem to be working for this case.

@marceloboeira
Copy link
Member

marceloboeira commented Apr 14, 2020

Interesting, I've never had a usecase for that. I've tried here:

docker run -p 127.0.0.1:18000:18000 checkr/flagr
docker run -p 0.0.0.0:18000:18000 checkr/flagr

both worked, no HOST/ENV

@awcoding
Copy link
Author

Yeah, it worked for me too just now. I don't know how but I must have screwed something up earlier. Closing issue.

@awcoding
Copy link
Author

For interest this is almost certainly where I screwed up earlier:
ssh -L 18000:127.0.0.1:18000 root@example.org
NOT
ssh -L 18000:example.org:18000 root@example.org

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