在云服务器在两个数据中心之间迁移之后,我的对接器就不能正常工作了。我看不见我的容器和图像。我收到以下错误:
ubuntu@ubuntu-servername-server:~$ sudo docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?当我通过"systemctl状态停靠器“检查对接者的状态时,我收到了"active: failed”错误。
ubuntu@ubuntu-gardooon-server:~$ sudo systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2022-09-10 16:29:10 UTC; 2 days ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 35714 (code=exited, status=1/FAILURE)
Sep 10 16:29:08 ubuntu-gardooon-server systemd[1]: docker.service: Main process exited, code=exited, statu>
Sep 10 16:29:08 ubuntu-gardooon-server systemd[1]: docker.service: Failed with result 'exit-code'.
Sep 10 16:29:08 ubuntu-gardooon-server systemd[1]: Failed to start Docker Application Container Engine.
Sep 10 16:29:10 ubuntu-gardooon-server systemd[1]: docker.service: Scheduled restart job, restart counter >
Sep 10 16:29:10 ubuntu-gardooon-server systemd[1]: Stopped Docker Application Container Engine.
Sep 10 16:29:10 ubuntu-gardooon-server systemd[1]: docker.service: Start request repeated too quickly.
Sep 10 16:29:10 ubuntu-gardooon-server systemd[1]: docker.service: Failed with result 'exit-code'.
Sep 10 16:29:10 ubuntu-gardooon-server systemd[1]: Failed to start Docker Application Container Engine.docker和docker-组合安装在我的服务器上,它们的版本如下:
ubuntu@ubuntu-gardooon-server:~$ docker --version
Docker version 20.10.7, build 20.10.7-0ubuntu5~20.04.2
ubuntu@ubuntu-gardooon-server:~$ docker-compose --version
docker-compose version 1.29.2, build 5becea4c在看到这些错误之后,我尝试检查/var/lib/ onubuntu20.04中的docker文件夹,但无法打开它。因此,经过一些尝试,我错误地删除了文件夹。现在请帮助我找出如何运行我的码头,如果可能的话,恢复我的集装箱和图像?如果没有,请告诉我如何重建我的码头?谢谢.我试着重新安装码头。使用命令(apt --重新安装install ),但我收到以下消息:
ubuntu@ubuntu-gardooon-server:~$ sudo apt install docker
Reading package lists... Done
Building dependency tree
Reading state information... Done
docker is already the newest version (1.5-2).
The following packages were automatically installed and are no longer required:
fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0
libjpeg-turbo8 libjpeg8 libtiff5 libwebp6 libxpm4
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 122 not upgraded.在那之后,我试着检查坞激活,但是它的状态激活失败了。
ubuntu@ubuntu-gardooon-server:~$ sudo systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset>
Active: failed (Result: exit-code) since Sat 2022-09-10 16:29:10 UTC; 4 da>
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 35714 (code=exited, status=1/FAILURE)发布于 2022-09-15 08:21:37
我再次完全安装了码头,然后问题解决了。但是所有的图像和容器都被移除了。
https://stackoverflow.com/questions/73706558
复制相似问题