Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Latest alpine/socat:1.7.3.4-r1 fails to resolve host.docker.internal #10

Closed
nickcaballero opened this issue Oct 26, 2020 · 2 comments
Closed

Comments

@nickcaballero
Copy link

Using socat for host.docker.internal works with 1.7.3.4-r0.

# start container
docker run --rm -p8080:8080 alpine/socat:1.7.3.4-r1 'TCP-LISTEN:8080,fork', 'TCP:host.docker.internal:8080'

# call it
curl localhost:8080

# log
socat[6] E getaddrinfo("host.docker.internal", "NULL", {1,0,1,6}, {}): Name does not resolve
@ozbillwang
Copy link
Contributor

This repo is to do a simple job, install socat in alpine image and push it. I do not take responsibility for the functions in it.

If you found any bugs in this tool, please report to

[email protected]

https://repo.or.cz/socat.git

http:https://www.dest-unreach.org/socat/

@alphkn
Copy link

alphkn commented Aug 29, 2021

I have encountered similar problem. socat throws "name does not resolve" exception for "host.docker.internal" . I just downgraded alpine to version 3.11.5.

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

No branches or pull requests

3 participants