Docker问题-(代码已退出,状态= 1 /失败)

时间:2020-04-25 16:54:58

标签: postgresql docker

问题是,我已经在自己的PC中安装了Docker。
尝试按照文档所述制作Postgres容器。

最令我头疼的问题是我启动了容器,然后用代码(1)退出了容器。
因此,我试图在如此多的站点中寻找很多“解决方案”,而其中任何一个都解决了该问题。

操作系统:

    Deppin 15.11

问题终端报告:

    Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/docker.service.d
           └─hosts.conf, override.conf
   Active: activating (auto-restart) (Result: exit-code) since Sat 2020-04-25 13:12:26 -03; 18ms ago
     Docs: https://docs.docker.com
  Process: 10333 ExecStart=/usr/bin/dockerd -H fd:// -H tcp://127.0.0.1:2375 (code=exited, status=1/FAILURE)
 Main PID: 10333 (code=exited, status=1/FAILURE)
      CPU: 80ms

JOURNALCTL -XE:

root@usuario-PC:/home/usuario# journalctl -xe
-- A unidade docker.service falhou.
-- 
-- O resultado é failed.
mai 08 11:00:16 usuario-PC systemd[1]: docker.socket: Unit entered failed state.
mai 08 11:00:16 usuario-PC systemd[1]: docker.service: Unit entered failed state.
mai 08 11:00:16 usuario-PC systemd[1]: docker.service: Failed with result 'exit-code'.
mai 08 11:00:42 usuario-PC systemd[1]: Starting Laptop Mode Tools - Battery Polling Service...
-- Subject: Unidade lmt-poll.service sendo iniciado
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A unidade lmt-poll.service está sendo iniciada.
mai 08 11:00:42 usuario-PC systemd[1]: Reloading Laptop Mode Tools.
-- Subject: Unidade laptop-mode.service iniciou recarregamento de sua configuração
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A unidade laptop-mode.service iniciou o recarregamento de sua configuração.
mai 08 11:00:42 usuario-PC systemd[1]: Started Laptop Mode Tools - Battery Polling Service.
-- Subject: Unidade lmt-poll.service concluiu a inicialização
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A unidade lmt-poll.service concluiu a inicialização.
-- 
-- The start-up result is done.
mai 08 11:00:42 usuario-PC laptop_mode[11704]: Laptop mode
mai 08 11:00:42 usuario-PC laptop_mode[11704]: enabled, not active [unchanged]
mai 08 11:00:42 usuario-PC systemd[1]: Reloaded Laptop Mode Tools.
-- Subject: Unidade laptop-mode.service concluiu recarregamento de sua configuração
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A unidade laptop-mode.service concluiu o recarregamento de sua configuração.
-- 
-- O resultado é done.

1 个答案:

答案 0 :(得分:1)

第一件事是确保您的docker服务正在运行?

$ sudo systemctl status docker

第二件事,您需要重新启动docker服务。我认为这是可行的。

$ sudo systemctl restart docker

最后一件事,如果以上所有功能均不起作用,则可以重新启动计算机(哈哈)