Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
phoyd
· 5y ago · 0 comments
Now Docker should provide some way to bridge container ports to UDS. That would be perfect.
Comments
[–]
TechBro8615
5y ago
You can bind mount the socket in a volume. You can also do this with named volumes shared between containers. You’ll need to make sure the GID/UIDs match, but it works great. It’s often faster for inter service communication than the Docker proxy.
[–]
yrro
5y ago
Quick hack for you:
socat TCP-LISTEN:4000,fork UNIX-CONNECT:/run/yoursock