dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Traefik needs to be updated due to Docker API deprecation

Open LickABrick opened this issue 1 year ago • 17 comments

To Reproduce

  1. Update Docker to latest version
  2. 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

LickABrick avatar Nov 11 '25 11:11 LickABrick

I had the same issue. I downgraded docker-ce to the latest 28.X version for now.

IT-ess avatar Nov 11 '25 18:11 IT-ess

Same

cristianbm-hub avatar Nov 12 '25 08:11 cristianbm-hub

up this problem, all service goes 404 because treafik error

vugn avatar Nov 12 '25 08:11 vugn

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.

jablonski avatar Nov 12 '25 08:11 jablonski

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!

lefolalan avatar Nov 12 '25 23:11 lefolalan

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/

jablonski avatar Nov 13 '25 18:11 jablonski

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.

AdrianBonpin avatar Nov 13 '25 21:11 AdrianBonpin

Looks like the Traefik v3.6.1 Docker image is available now!

LickABrick avatar Nov 13 '25 22:11 LickABrick

+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

bakirgdev avatar Nov 14 '25 19:11 bakirgdev

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:

Image

SasSam avatar Nov 15 '25 13:11 SasSam

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:

Image

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.

SasSam avatar Nov 15 '25 13:11 SasSam

@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.

Image

SasSam avatar Nov 15 '25 15:11 SasSam

Also need to update traefik version in docs.

alexma233 avatar Nov 15 '25 16:11 alexma233

@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.

LickABrick avatar Nov 15 '25 16:11 LickABrick

@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.

SasSam avatar Nov 15 '25 16:11 SasSam

@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.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/

pcasad avatar Dec 31 '25 13:12 pcasad

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.

balloman avatar Feb 03 '26 19:02 balloman