我把Ubuntu从18.04升级到20.04。我一直无法运行我所有的码头集装箱。尝试卸载码头和重新安装通过链接就像这样。当使用apt时,安装会冻结在码头的配置上。安装无法启动码头。
最终,它似乎归结为配置问题。
user@user-pc:~$ sudo dpkg --configure -a
Setting up docker-ce (5:20.10.1~3-0~ubuntu-focal) ...
/bin/sh: 0: Illegal option -w
dpkg: error processing package docker-ce (--configure):
installed docker-ce package post-installation script subprocess returned error exit status-2
dpkg: dependency problems prevent configuration of docker-ce-rootless-extras:
docker-ce-rootless-extras depends on docker-ce; however:
Package docker-ce is not configured yet.
dpkg: error processing package docker-ce-rootless-extras (--configure):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
docker-ce
docker-ce-rootless-extras码头地位
sudo service docker status显示停靠器是活动的,但任何停靠器命令都会永远挂起。此外,docker-compose命令超时。
docker-compose logs -f
...
...
docker.errors.DockerException: Error while fetching server API version: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)我很困惑,一直想解决这个问题,现在已经三天了。
发布于 2020-12-26 09:27:46
安装码头时是否有后台运行的VPN?
显然,隧道你的网络[while installing docker leads to problems][1]。这也发生在我身上。关闭开via
数多服务开放站
码头安装得很漂亮。
发布于 2023-02-21 08:45:37
给有线用户的附加说明,而不是openvpn:
同样的事情发生在我安装钢绞线的时候。即使隧道不活动,问题也是存在的。
正如Timon的解决方案所建议的那样,您可以通过运行以下命令对Wireguard执行同样的操作:
sudo systemctl stop wg-quick@wg0.service
sudo apt remove docker-ce
sudo apt install docker-ce
sudo systemctl start wg-quick@wg0.service注意:如果您在安装过程中使用了其他名称,wg0可能是另一种名称。您可以使用选项卡按钮后,编写wg-快速@找到您的版本。
https://askubuntu.com/questions/1302371
复制相似问题