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

IP address broken with --net=host #42

Open
jennydaman opened this issue Feb 6, 2021 · 0 comments
Open

IP address broken with --net=host #42

jennydaman opened this issue Feb 6, 2021 · 0 comments

Comments

@jennydaman
Copy link
Contributor

docker run --rm --net=host fnndsc/pfurl --http 127.0.0.1:5010/api/v1/cmd
Traceback (most recent call last):
File "/usr/local/bin/pfurl", line 23, in <module>
str_defIP   = [l for l in ([ip for ip in socket.gethostbyname_ex(socket.gethostname())[2] if not ip.startswith("127.")][:1], [[(s.connect(('8.8.8.8', 53)), s.getsockname()[0], s.close()) for s in [socket.socket(socket.AF_INET, socket.SOCK_DGRAM)]][0][1]]) if l][0][0]
socket.gaierror: [Errno -2] Name or service not known
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

1 participant