Tecnativa / docker-socket-proxy

Proxy over your Docker socket to restrict which requests it accepts
Apache License 2.0
1.41k stars 161 forks source link

versions newer than 0.1.1 fail to start with ipv6 disabled on host #124

Closed Baine closed 5 months ago

Baine commented 5 months ago

Greetings,

currently this app fails to launch with the below message if the host and docker have ipv6 disabled:

netdata_proxy  | [ALERT] 098/102718 (1) : Starting frontend dockerfrontend: cannot create listening socket [:::2375]

had to go back to 0.1.1 for it to start properly

would it be possible to allow for disabling ipv6 in the container, e.g. via ENV?

Thanks in advance, and please let me know if you need additional information.

Solution:

    environment:
      - CONTAINERS=1
      - DISABLE_IPV6=true

as suggested by @pedrobaeza

sascha-schieferdecker commented 5 months ago

I can confirm this behaviour

pedrobaeza commented 5 months ago

Just use DISABLE_IPV6 environment variable.

Baine commented 5 months ago

Just use DISABLE_IPV6 environment variable.

thank you, this works (should have checked the docker file) tried "HAS_IPV6=false" previously, which failed

env block now looks like this, in case someone wants to copy it

    environment:
      - CONTAINERS=1
      - DISABLE_IPV6=true

closing this now :)