我尝试了此操作,似乎它已经是最新的了。
# apt install docker-ce docker-ce-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
docker-ce is already the newest version (5:20.10.7~3-0~ubuntu-xenial).
docker-ce-cli is already the newest version (5:20.10.7~3-0~ubuntu-xenial).
docker-ce-cli set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
将 Docker 切换到 overlay2(如 Change the Docker storage backend 中所述),删除了旧的 aufs 目录,但重建仍然以相同的方式失败。
然后执行了 do-release-upgrade,由于我不再使用 aufs,现在可以执行此操作了。
在完成所有这些之后,它仍然告诉我:
WARNING: Docker version 20.10.7 deprecated, recommend upgrade to 24.0.7 or newer.
并且仍然以相同的方式失败。
然后又执行了一次 do-release-upgrade -d 来更新到 24(这听起来有点令人担忧 https://www.zdnet.com/article/the-rocky-road-to-upgrading-ubuntu-linux-24-04/)。但嘿,我有备份和快照,服务器已经宕机了……
好的,但现在 Docker 仍然是 20 版本。
强制将 Docker 更新到 24 版本(Ubuntu | Docker Docs
再次重建。
它重建成功了。哇。
嗯,这真有趣。或者别的什么。
希望所有这些升级都没有破坏其他东西,但它看起来已经恢复正常并已更新——祈祷吧。