Yes, that should solve the issue with the AIO container. For those with other containers that are not yet compatible with the new API, the following might be a better solution: Latest AIO mastercontainer fails with latest Docker · Issue #7096 · nextcloud/all-in-one · GitHub
However, if I understand correctly, both of the above workarounds only change the API version that the container, or Docker service, expects. If functions have actually been removed from Docker that a container still wants to use, problems may still arise. Therefore, the safest solution would probably still be to downgrade Docker until the issues are resolved.
Here are my notes on how to do this:
I created these for an older version of Docker because of a problem with Mailcow at the time. So don’t forget to adjust the version numbers accordingly!
Downgrade packages
Show old versions:
apt-cache policy docker-ce
apt-cache policy docker-ce-cli
apt-cache policy docker-ce-rootless-extras
Example output:
docker-ce:
Installiert: 5:24.0.0-1~debian.11~bullseye
Installationskandidat: 5:24.0.0-1~debian.11~bullseye
Versionstabelle:
*** 5:24.0.0-1~debian.11~bullseye 500
500 https://download.docker.com/linux/debian bullseye/stable amd64 Packages
100 /var/lib/dpkg/status
5:23.0.6-1~debian.11~bullseye 500
500 https://download.docker.com/linux/debian bullseye/stable amd64 Packages
5:23.0.5-1~debian.11~bullseye 500
500 https://download.docker.com/linux/debian bullseye/stable amd64 Packages
5:23.0.4-1~debian.11~bullseye 500
500 https://download.docker.com/linux/debian bullseye/stable amd64 Packages
5:23.0.3-1~debian.11~bullseye 500
500 https://download.docker.com/linux/debian bullseye/stable amd64 Packages
5:23.0.2-1~debian.11~bullseye 500
500 https://download.docker.com/linux/debian bullseye/stable amd64 Packages
5:23.0.1-1~debian.11~bullseye 500
500 https://download.docker.com/linux/debian bullseye/stable amd64 Packages
Downgrade packages:
apt install docker-ce=5:23.0.6-1~debian.11~bullseye
apt install docker-ce-cli=5:23.0.6-1~debian.11~bullseye
apt install docker-ce-rootless-extras=5:23.0.6-1~debian.11~bullseye
To prevent the packages from being updated again, the packages must be put on hold:
apt-mark hold docker-ce docker-ce-cli docker-ce-rootless-extras
Allowing the packages to be updated again:
apt-mark unhold docker-ce docker-ce-cli docker-ce-rootless-extras