mirror of
https://github.com/fosrl/newt.git
synced 2026-03-09 07:12:28 -05:00
[Feature Request] Make Docker Socket feature protocol aware #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @beefstew809 on GitHub (Jun 7, 2025).
I am trying to use the new
DOCKER_SOCKEToption that was recently released. Instead of exposing/var/run/docker.sockdirectly, I am using asocket-proxycontainer (lscr.io/linuxserver/socket-proxy- https://docs.linuxserver.io/images/docker-socket-proxy) to help secure my environment more.If I set
DOCKER_SOCKET=tcp://socket-proxy:2375then I receive back the logDocker socket check response sent: available=false. Note thatsocket-proxyis the name of my container. It could be any name or port after thetcp://portion.It looks like the code looks specifically for
/var/run/docker.sockand that it does not accept TCP protocols (it is specifically looking for unix).See:
50b621f17c/docker/client.go (L52-L59)I think it will be more than just doing a check and accepting TCP in the above function as I see the code is appending unix to the
socketPathat50b621f17c/docker/client.go (L83)Request: Make the code protocol aware so that security enhancements such as
socket-proxycan be usedThank you for your condsideration and for this awesome project!