Traefik needs to be updated due to Docker API deprecation
To Reproduce
- Update Docker to latest version
- Traefik seems to be broken due to legacy API deprecations (https://docs.docker.com/engine/deprecated/#deprecate-legacy-api-versions)
Current vs. Expected behavior
Dokploy interface unreachable after updating Docker
Provide environment information
Dokploy version v0.25.6
OS: Debian 13
Which area(s) are affected? (Select all that apply)
Traefik
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
See: https://docs.docker.com/engine/deprecated/#deprecate-legacy-api-versions And: https://github.com/traefik/traefik/issues/12253
It seems the people over at Traefik are already working on it and I expect a fix in the latest version. Once released Dokploy should also update to the latest Traefik version.
Will you send a PR to fix it?
No
I had the same issue. I downgraded docker-ce to the latest 28.X version for now.
Same
up this problem, all service goes 404 because treafik error
Interesting... our Traeffic logs were flooded with "error="Error response from daemon: client version 1.24 is too old. Minimum supported API version is 1.44, please upgrade your client to a newer version" providerName=docker" with Docker 29, but Dokploy / Traeffik / our applications still worked "somehow". Maybe only for existing deployments, don't know for sure.
We downgraded to Docker 28 (and pinned version) to be on the safe side for the time being. But this issue is very important to get fixed as soon as possible.
Same problem here and on my Portainer, but I found a workaround on the Portainer GitHub that also works for Dokploy, instead of downgrading the version https://github.com/portainer/portainer/issues/12925#issuecomment-3516549977. Cheers!
Diving a litte bit deeper into the issue, the best workaround we found so far is to create a file /etc/docker/daemon.json with the following contents:
{ "min-api-version": "1.24"}
This way we could update to Docker 29 with existing Dokploy installations without any problems. We've tested on 2 independent installations, both are working fine.
https://www.docker.com/blog/docker-engine-version-29/ https://docs.docker.com/engine/daemon/
Christ I thought I broke my nextcloud instance while migrating the volumes. I just didn't notice that the current traefik version was going crazy from the recent docker update that I coincidentally did just before migrating my volumes. Glad to see that it's just a downgrade. Hopefully fix gets merged soon.
Looks like the Traefik v3.6.1 Docker image is available now!
+1
this version mismatch broke domain routing on my setup (dokploy panel works fine via IP, expected)
the following fix (i made a one-liner) resolved the issue (until official update comes)
echo '{"min-api-version": "1.24"}' | sudo tee /etc/docker/daemon.json && sudo systemctl daemon-reload && sudo systemctl restart docker
I'm on Debian 13 (trixie) and I downgraded the docker to 28. Dokploy app became unreachable via domain name. It work only via IP. It's because the Traefik container stopped running:
ok, so I manually re-run the dokploy-traefik docker with the latest on the server and connected its network:
docker run -d \
--name dokploy-traefik \
--restart always \
-v /etc/dokploy/traefik/traefik.yml:/etc/traefik/traefik.yml \
-v /etc/dokploy/traefik/dynamic:/etc/dokploy/traefik/dynamic \
-v /var/run/docker.sock:/var/run/docker.sock \
-p 80:80/tcp \
-p 443:443/tcp \
-p 443:443/udp \
traefik:v3.6.1
docker network connect dokploy-network dokploy-traefik
After this, the domain access comes back as well as the errors:
But then this solution fixed it: https://github.com/traefik/traefik/issues/12253#issuecomment-3515555316
Now it works fine with the latest docker as well.
Also, I had to re-deploy all services to get back the traefik routings.
@Siumauricio For some reason if I click on the "Reload" Traefik action on the dashboard, it reloads with Traefik v3.5.0, lost all previously set Traefik environment variables and it ruins everything again.
I have to set domain provider related API envs for the Let's encrypt dnschallenge.
Also need to update traefik version in docs.
@SasSam you should probably just wait until a new Dokploy release comes out with the latest Traefik version. Applying manual fixes is probably not something Dokploy (Siumauricio) can give you support for.
@SasSam you should probably just wait until a new Dokploy release comes out with the latest Traefik version. Applying manual fixes is probably not something Dokploy (Siumauricio) can give you support for.
Yeah, I've realised it's still not in the main branch, but in the canary.
@Siumauricio FYI I ran into this issue today on Dokploy Version v0.26.2 (don't know if the fix was already pushed to main or not)
Fixed it with the following from @jablonski
Diving a litte bit deeper into the issue, the best workaround we found so far is to create a file
/etc/docker/daemon.jsonwith the following contents:
{ "min-api-version": "1.24"}This way we could update to Docker 29 with existing Dokploy installations without any problems. We've tested on 2 independent installations, both are working fine.
https://www.docker.com/blog/docker-engine-version-29/ https://docs.docker.com/engine/daemon/
For what its worth, I'm on Dokploy 0.26.7 and this is still an issue. The traefik version is NOT being updated, even after reboot, even after Traefik reload. This issue should be reopened with a proper fix for those with existing installations @Siumauricio
@SasSam Your workaround did work for me though, thank you!
Hopefully, we can get this issue resolved as soon as possible, was quite confusing for me before I found this.