首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当状态结果为“活动:失败(结果:退出代码)”时,如何在ubuntu中“活动:运行”停靠程序

当状态结果为“活动:失败(结果:退出代码)”时,如何在ubuntu中“活动:运行”停靠程序
EN

Stack Overflow用户
提问于 2022-09-13 16:44:03
回答 1查看 207关注 0票数 0

在云服务器在两个数据中心之间迁移之后,我的对接器就不能正常工作了。我看不见我的容器和图像。我收到以下错误:

代码语言:javascript
复制
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”错误。

代码语言:javascript
复制
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-组合安装在我的服务器上,它们的版本如下:

代码语言:javascript
复制
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 ),但我收到以下消息:

代码语言:javascript
复制
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.

在那之后,我试着检查坞激活,但是它的状态激活失败了。

代码语言:javascript
复制
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)
EN

回答 1

Stack Overflow用户

发布于 2022-09-15 08:21:37

我再次完全安装了码头,然后问题解决了。但是所有的图像和容器都被移除了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73706558

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档