Docker fix for API and recent changes

Docker fix for API and recent changes main photo

Recently there was some changes that broke Docker and the API minimum version. These fixes are solutions for a temporary fix and should be corrected accordingly.

You must first downgrade to the current version that isn’t breaking.

Debian (bookworm):

$ sudo apt install containerd.io=1.7.28-1~debian.12~bookworm

Debian (bullseye):

$ apt install containerd.io=1.7.28-1~debian.11~bullseye

You must set the API version there are two ways

$ sudo nano /lib/systemd/system/docker.service

Add:

Environment=DOCKER_MIN_API_VERSION=1.24

Below:

ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock ExecReload=/bin/kill -s HUP $MAINPID TimeoutStartSec=0 RestartSec=2 Restart=always

Lastly, you want to restart the docker services

$ sudo systemctl daemon-reload $ sudo service docker restart

Optional: You can also edit the daemon.json file to achieve the same results.

$ sudo nano /etc/docker/daemon.json

Then add:

{ "min-api-version": "1.24" }

Lastly, we want to restart docker services

$ sudo service docker restart