I have Traefik v2.1.1 setup to connect to a socket-proxy as per the instructions, with proper SELinux mounts (mounting with Z). I followed this guide; https://medium.com/@containeroo/traefik-2-0-paranoid-about-mounting-var-run-docker-sock-22da9cb3e78c
Here is my Traefik toml config:
[providers]
providersThrottleDuration = 42
[providers.docker]
endpoint = "tcp://socket-proxy:2375"
watch = true
exposedByDefault = false
useBindPortIP = false
swarmMode = false
network = "bridge"
[providers.docker.tls]
caOptional = true
insecureSkipVerify = true
When I run traefik, it doesn't see any of my other containers (which are set to traefik.enabled=true) this is the output I see from the traefik container;
time="2019-12-14T08:19:26Z" level=error msg="Provider connection error error during connect: Get https://socket-proxy:2375/v1.24/version: http: server gave HTTP response to HTTPS client, retrying in 2.011541491s" providerName=docker
time="2019-12-14T08:19:28Z" level=debug msg="FIXME: Got an status-code for which error does not match any expected type!!!: -1" module=api status_code=-1
time="2019-12-14T08:19:28Z" level=error msg="Failed to retrieve information of the docker client and server host: error during connect: Get https://socket-proxy:2375/v1.24/version: http: server gave HTTP response to HTTPS client" providerName=docker
time="2019-12-14T08:19:28Z" level=error msg="Provider connection error error during connect: Get https://socket-proxy:2375/v1.24/version: http: server gave HTTP response to HTTPS client, retrying in 2.635284008s" providerName=docker
It seems to be asking the proxy for https when it should just be straight tcp. I don't know what more to do, the tcp is specified in the endpoint.
This is what the socket proxy says,
Proxy dockerbackend started.
Proxy dockerfrontend started.
[NOTICE] 347/070115 (1) : New worker #1 (11) forked
X.X.X.X:60264 [14/Dec/2019:07:27:55.857] dockerfrontend dockerfrontend/<NOSRV> -1/-1/-1/-1/0 400 188 - - PR-- 1/1/0/0/0 0/0 "<BADREQ>"
Any help would be greatly appreciated, thanks.