一直使用Watchtower自动更新docker的镜像。
最近遇到一个页面问题,尝试使用论坛内的官方方案:curl http://static2.fnnas.com/aptfix/fixapt.sh | bash。刷新系统组件。
重启开机后发现是一个旧版本,然后使用系统自带的升级,目前升级回了飞牛1.18版本。
原来认为没有什么问题了,但是今天发现Watchtower一直是运行失败的。检查log发现如下报错:
Error response from daemon: client version 1.25 is too old. Minimum supported API version is 1.44, please upgrade your client to a newer version
是docker的client version低了。但是通过ssh访问,手动想升级docker版本到新版本。又提示已经是最新的版本了。
apt install docker-ce docker-ce-cli containerd.io
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
docker-ce is already the newest version (5:29.1.3-1debian.12bookworm).
docker-ce-cli is already the newest version (5:29.1.3-1debian.12bookworm).
containerd.io is already the newest version (2.2.1-1debian.12bookworm).
0 upgraded, 0 newly installed, 0 to remove and 187 not upgraded.
不知道该如何处理了。有没有什么好的方案?最好不要重装系统。