traefik | 2026-02-28T19:08:52+01:00 ERR Failed to retrieve information of the docker client and server host error="permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.51/version\": dial unix /var/run/docker.sock: connect: permission denied" providerName=docker
traefik | 2026-02-28T19:08:52+01:00 ERR Provider error, retrying in 1.343197724s error="permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.51/version\": dial unix /var/run/docker.sock: connect: permission denied" providerName=docker
traefik | 2026-02-28T19:08:53+01:00 ERR Failed to retrieve information of the docker client and server host error="permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.51/version\": dial unix /var/run/docker.sock: connect: permission denied" providerName=docker
traefik | 2026-02-28T19:08:53+01:00 ERR Provider error, retrying in 5.417698464s error="permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.51/version\": dial unix /var/run/docker.sock: connect: permission denied" providerName=docker
traefik | 2026-02-28T19:08:58+01:00 ERR Failed to retrieve information of the docker client and server host error="permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.51/version\": dial unix /var/run/docker.sock: connect: permission denied" providerName=docker
traefik | 2026-02-28T19:08:58+01:00 ERR Provider error, retrying in 4.714790344s error="permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.51/version\": dial unix /var/run/docker.sock: connect: permission denied" providerName=docker
traefik | 2026-02-28T19:09:03+01:00 ERR Failed to retrieve information of the docker client and server host error="permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.51/version\": dial unix /var/run/docker.sock: connect: permission denied" providerName=docker
traefik | 2026-02-28T19:09:03+01:00 ERR Provider error, retrying in 9.92899046s error="permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.51/version\": dial unix /var/run/docker.sock: connect: permission denied" providerName=docker
traefik | 2026-02-28T19:09:13+01:00 ERR Failed to retrieve information of the docker client and server host error="permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.51/version\": dial unix /var/run/docker.sock: connect: permission denied" providerName=docker
traefik | 2026-02-28T19:09:13+01:00 ERR Provider error, retrying in 15.283470479s error="permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.51/version\": dial unix /var/run/docker.sock: connect: permission denied" providerName=docker
also when I issue curl --unix-socket /var/run/docker.sock http://localhost/_ping on the host it says OK
when I issue it in the traefik container it says curl: (7) Failed to connect to localhost over /var/run/docker.sock after 0 ms: Could not connect to server
as far as I can tell the socket is present: srw-rw---- 1 root 474 0 Feb 28 19:03 /var/run/docker.sock
and I’m root so I should have rights
to reach this point some files need to be mapped :ro,Z (instead of :ro), I suspect it has something to do with rootfs being read only, but I’m not sure
log:
level: "DEBUG" #debug
api:
insecure: true #debug
debug: true #debug
dashboard: true
disableDashboardAd: true
entryPoints:
http:
address: ":80"
http:
redirections:
entryPoint:
to: https
scheme: https
https:
address: ":443"
serversTransport:
insecureSkipVerify: true
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
# file:
# filename: /config.yml
certificatesResolvers:
myaddr:
acme:
email: pentek.imre@gmail.com
storage: /acme.json
# caServer: https://acme-v02.api.letsencrypt.org/directory # prod (default)
caServer: https://acme-staging-v02.api.letsencrypt.org/directory # staging
dnsChallenge:
provider: myaddr
#disablePropagationCheck: true # uncomment this if you have issues pulling certificates through cloudflare, By setting this flag to true disables the need to wait for the propagation of the TXT record to all authoritative name servers.
#delayBeforeCheck: 60s # uncomment along with disablePropagationCheck if needed to ensure the TXT record is ready before verification is attempted
resolvers:
- "116.203.95.251:53"
acme.json:
-rw-------. 1 root root 0 Mar 1 15:05 data/acme.json
inside the container it’s just a gid. on the host system I see the group: srw-rw----. 1 root docker 0 Mar 2 18:12 /var/run/docker.sock
I installed it by issuing sudo stransactional-update pkg install docker docker-compose then rebooting