I've initialized traefik in docker swarm with following parameters:
docker service create
What is odd is that the traffic to port 2375 is realized using https instead of http. This results in the following error:
traefik.0.qkxia79i3jmp@myhost | time="2019-09-18T12:48:25Z" level=error msg="Failed to retrieve information of the docker client and server host: error during connect: Get https://dockersocket4traefik:2375/v1.24/version: http: server gave HTTP response to HTTPS client"
I fail to find documentation that would help so I'm asking if you've run to the same error? The source code indicates (quick check) that whenever the --docker.tls option is active, the traefik built-in http client switches to https (whereas we would not want that to happen).
Sorry we cannot use letsencrypt but have to use non-self-signed certificates from a commercial source.