You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set up caddy-docker-proxy in somewhat of an unorthodox way (similar to #616), but I've encountered a disparity between the docs and observed behavior.
The README states,
Server instances doesn't need access to Docker host socket and you can run it in manager or worker nodes.
However, when I run caddy docker-proxy --docker-sockets tcp://this-is-not-a-real-url-and-should-not-exist:1000 --mode server, it fails because it tries to connect to the docker daemon.
2024/09/28 22:30:40.299 INFO docker-proxy Running caddy proxy controller
2024/09/28 22:30:40.304 ERROR docker-proxy Docker ping failed on specify socket {"error": "error during connect: Head \"http://this-is-not-a-real-url-and-should-not-exist:1000/_ping\": dial tcp: lookup this-is-not-a-real-url-and-should-not-exist on 10.128.1.253:53: server misbehaving", "DockerSocket": "tcp://this-is-not-a-real-url-and-should-not-exist:1000"}
Error: error during connect: Head "http://this-is-not-a-real-url-and-should-not-exist:1000/_ping": dial tcp: lookup this-is-not-a-real-url-and-should-not-exist on 10.128.1.253:53: server misbehaving
I've tracked it down to the spurious "Running caddy proxy controller".
CADDY_DOCKER_MODE=server caddy docker-proxy works properly.
I suspect it is due to mode being declared as a bool flag here:
I'm trying to set up caddy-docker-proxy in somewhat of an unorthodox way (similar to #616), but I've encountered a disparity between the docs and observed behavior.
The README states,
However, when I run
caddy docker-proxy --docker-sockets tcp://this-is-not-a-real-url-and-should-not-exist:1000 --mode server
, it fails because it tries to connect to the docker daemon.I've tracked it down to the spurious "Running caddy proxy controller".
CADDY_DOCKER_MODE=server caddy docker-proxy
works properly.I suspect it is due to
mode
being declared as a bool flag here:caddy-docker-proxy/cmd.go
Lines 30 to 31 in 6b35fc2
and used as a string flag here:
caddy-docker-proxy/cmd.go
Line 154 in 6b35fc2
The text was updated successfully, but these errors were encountered: