H
Homarr2d ago
b_d0n

docker socket proxy

can someone tell me if this is correct for dock socket proxy.. i just realized mine has never been working lol xD checked logs and its clearly not finding the address Error [TRPCError]: getaddrinfo ENOTFOUND dockersocket] { code: 'INTERNAL_SERVER_ERROR', ive set env variable Docker TCP Hosts: tcp://dockersocket:2375
38 Replies
Cakey Bot
Cakey Bot2d ago
Thank you for submitting a support request. Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Meierschlumpf
Meierschlumpf2d ago
Which version are you in?
b_d0n
b_d0nOP2d ago
1.22.0
Meierschlumpf
Meierschlumpf2d ago
Okay any you have set which env variable(s) for docker?
b_d0n
b_d0nOP2d ago
on the unraid template it is
No description
b_d0n
b_d0nOP2d ago
usually its DOCKER_HOST i also tried that
Meierschlumpf
Meierschlumpf2d ago
There is also a ports, right?
b_d0n
b_d0nOP2d ago
i dont see one for a port
Meierschlumpf
Meierschlumpf2d ago
Our current system is a bit stupid. You have to specify all hostnames and ports comma seperated, so it would be DOCKER_HOSTNAMES='dockersocket' and DOCKER_PORTS='2375' Okay maybe there is no such setting for the unraid template yet, let me check
b_d0n
b_d0nOP2d ago
so dont use Docker TCP Hosts?
b_d0n
b_d0nOP2d ago
this is all i see under the template
No description
Meierschlumpf
Meierschlumpf2d ago
There should be a Docker TCP Hosts and Docker TCP Host Ports
No description
Meierschlumpf
Meierschlumpf2d ago
Or do you use a custom template?
b_d0n
b_d0nOP2d ago
ill create it. i may have removed them back when the template had a bunch going on.
b_d0n
b_d0nOP2d ago
so dont put tcp://dockersocket:2375 in the Docker TCP Hosts?
Meierschlumpf
Meierschlumpf2d ago
In the future we'll probably replace the env variables with an actual integration
b_d0n
b_d0nOP2d ago
just put dockersocket
Meierschlumpf
Meierschlumpf2d ago
No just specify dockersocket for hosts and 2375 for ports
b_d0n
b_d0nOP2d ago
tryiing now. question, why isnt it the same as others with it just needing DOCKER_HOST: tcp://dockersocket:2375 still says failed too fetch
Meierschlumpf
Meierschlumpf2d ago
It was just implemented that way and we then did not think to much about it, as I said I don't like the system myself as it is really confusing Okay but still ENOTFOUND or something different?
b_d0n
b_d0nOP2d ago
still ENOTFOUND
⨯ [Error [TRPCError]: getaddrinfo ENOTFOUND dockersocket] {
code: 'INTERNAL_SERVER_ERROR',
digest: '3407047122',
[cause]: [Error: getaddrinfo ENOTFOUND dockersocket] {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'dockersocket'
⨯ [Error [TRPCError]: getaddrinfo ENOTFOUND dockersocket] {
code: 'INTERNAL_SERVER_ERROR',
digest: '3407047122',
[cause]: [Error: getaddrinfo ENOTFOUND dockersocket] {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'dockersocket'
im wondering if since its different its not able too see my socket_poxy network everything else is set up where all containers live on a docker network and the socketproxy is on a socket_proxy network
Meierschlumpf
Meierschlumpf2d ago
Yeah thats possible, because it seems like the dns entry is not present or similar
b_d0n
b_d0nOP2d ago
like so
No description
b_d0n
b_d0nOP2d ago
its not seeing the network... hmmm maybe a limitation of how its set up in homarr?
Meierschlumpf
Meierschlumpf2d ago
Not sure, maybe the template just does not have more networks configured. Did not even know that it's possible to have a container in multiple of them
b_d0n
b_d0nOP2d ago
thats above me as well... ive always been able too just set container too use DOCKER_HOST: tcp://dockersocket:2375 and so far its always worked like this. and simply adds the network
b_d0n
b_d0nOP2d ago
for example here is crowdsec container and u can see above it sees it fine
No description
b_d0n
b_d0nOP2d ago
id ask mani if he knows but i dont want too ping
Meierschlumpf
Meierschlumpf2d ago
Yeah, maybe he knows something more. IMO it would not really make sense that the DOCKER_HOST configuration would result in it having access to the other network (or beeing added automatically) because it will never know the existing domains (at least as far as I understand)
b_d0n
b_d0nOP2d ago
@Manicraft1001 sorry too ping... but could you possibly give your two cents on this.. @Meierschlumpf changing the dockersocket too the same network resulted in
at <unknown> (Error: connect ECONNREFUSED 172.22.0.14:80) {
code: 'INTERNAL_SERVER_ERROR',
digest: '2679246876',
[cause]: Error: connect ECONNREFUSED 172.22.0.14:80
at <unknown> (Error: connect ECONNREFUSED 172.22.0.14:80) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '172.22.0.14',
port: 80
at <unknown> (Error: connect ECONNREFUSED 172.22.0.14:80) {
code: 'INTERNAL_SERVER_ERROR',
digest: '2679246876',
[cause]: Error: connect ECONNREFUSED 172.22.0.14:80
at <unknown> (Error: connect ECONNREFUSED 172.22.0.14:80) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '172.22.0.14',
port: 80
Meierschlumpf
Meierschlumpf2d ago
Okay so the port seems not to be used?
b_d0n
b_d0nOP2d ago
yeah it seems too be ignoring the port env
b_d0n
b_d0nOP2d ago
this is correct right?
No description
Meierschlumpf
Meierschlumpf2d ago
Yeah seems correct
b_d0n
b_d0nOP2d ago
can you confirm its working on your end?
Meierschlumpf
Meierschlumpf2d ago
I have not tested myself using it with a docker proxy, I would first need to setup one Can you create an issue on GitHub so we can investigate as part of it and fix it if there is an issue in our code?
b_d0n
b_d0nOP2d ago
well im not really sure if theres any thing more i can do.. yes will do. #3338

Did you find this page helpful?