当前位置:   article > 正文

docker 启动异常问题处理_loaded: loaded (/etc/systemd/system/docker.service

loaded: loaded (/etc/systemd/system/docker.service; disabled; vendor preset:

系统版本:CentOS Linux release 7.6.1810 (Core) 

按照如下方法安装docker以后启动失败:

$ sudo yum update
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
sudo systemctl start docker
  1. [root@localhost ~]# sudo systemctl start docker
  2. Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
  3. [root@localhost ~]# systemctl status docker.service
  4. ● docker.service - Docker Application Container Engine
  5.    Loaded: loaded (/etc/systemd/system/docker.service; disabled; vendor preset: disabled)
  6.   Drop-In: /etc/systemd/system/docker.service.d
  7.            └─mountflags-slave.conf, overlay.conf
  8.    Active: failed (Result: exit-code) since 四 2019-03-28 19:00:02 CST; 5s ago
  9.      Docs: http://docs.docker.com
  10.   Process: 20988 ExecStart=/usr/bin/docker daemon -H fd:// -s overlay (code=exited, status=125)
  11.  Main PID: 20988 (code=exited, status=125)
  12. 3月 28 19:00:02 localhost.localdomain docker[20988]: tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
  13. 3月 28 19:00:02 localhost.localdomain docker[20988]: top         Display the running processes of a container
  14. 3月 28 19:00:02 localhost.localdomain docker[20988]: unpause     Unpause all processes within one or more containers
  15. 3月 28 19:00:02 localhost.localdomain docker[20988]: update      Update configuration of one or more containers
  16. 3月 28 19:00:02 localhost.localdomain docker[20988]: version     Show the Docker version information
  17. 3月 28 19:00:02 localhost.localdomain docker[20988]: wait        Block until one or more containers stop, then print their exit codes
  18. 3月 28 19:00:02 localhost.localdomain docker[20988]: Run 'docker COMMAND --help' for more information on a command.
  19. 3月 28 19:00:02 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
  20. 3月 28 19:00:02 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
  21. 3月 28 19:00:02 localhost.localdomain systemd[1]: docker.service failed.
  22. 用journalctl -xe显示:
  23. [root@localhost ~]# journalctl -xe
  24. 3月 28 19:00:02 localhost.localdomain docker[20988]: pause       Pause all processes within one or more containers
  25. 3月 28 19:00:02 localhost.localdomain docker[20988]: port        List port mappings or a specific mapping for the container
  26. 3月 28 19:00:02 localhost.localdomain docker[20988]: ps          List containers
  27. 3月 28 19:00:02 localhost.localdomain docker[20988]: pull        Pull an image or a repository from a registry
  28. 3月 28 19:00:02 localhost.localdomain docker[20988]: push        Push an image or a repository to a registry
  29. 3月 28 19:00:02 localhost.localdomain docker[20988]: rename      Rename a container
  30. 3月 28 19:00:02 localhost.localdomain docker[20988]: restart     Restart one or more containers
  31. 3月 28 19:00:02 localhost.localdomain docker[20988]: rm          Remove one or more containers
  32. 3月 28 19:00:02 localhost.localdomain docker[20988]: rmi         Remove one or more images
  33. 3月 28 19:00:02 localhost.localdomain docker[20988]: run         Run a command in a new container
  34. 3月 28 19:00:02 localhost.localdomain docker[20988]: save        Save one or more images to a tar archive (streamed to STDOUT by default)
  35. 3月 28 19:00:02 localhost.localdomain docker[20988]: search      Search the Docker Hub for images
  36. 3月 28 19:00:02 localhost.localdomain docker[20988]: start       Start one or more stopped containers
  37. 3月 28 19:00:02 localhost.localdomain docker[20988]: stats       Display a live stream of container(s) resource usage statistics
  38. 3月 28 19:00:02 localhost.localdomain docker[20988]: stop        Stop one or more running containers
  39. 3月 28 19:00:02 localhost.localdomain docker[20988]: tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
  40. 3月 28 19:00:02 localhost.localdomain docker[20988]: top         Display the running processes of a container
  41. 3月 28 19:00:02 localhost.localdomain docker[20988]: unpause     Unpause all processes within one or more containers
  42. 3月 28 19:00:02 localhost.localdomain docker[20988]: update      Update configuration of one or more containers
  43. 3月 28 19:00:02 localhost.localdomain docker[20988]: version     Show the Docker version information
  44. 3月 28 19:00:02 localhost.localdomain docker[20988]: wait        Block until one or more containers stop, then print their exit codes
  45. 3月 28 19:00:02 localhost.localdomain docker[20988]: Run 'docker COMMAND --help' for more information on a command.
  46. 3月 28 19:00:02 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
  47. -- Subject: Unit docker.service has failed
  48. -- Defined-By: systemd
  49. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  50. -- 
  51. -- Unit docker.service has failed.
  52. -- 
  53. -- The result is failed.
  54. 3月 28 19:00:02 localhost.localdomain polkitd[8238]: Unregistered Authentication Agent for unix-process:20982:70252921 (system bus name :1.664, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, loca
  55. 3月 28 19:00:02 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
  56. 3月 28 19:00:02 localhost.localdomain sudo[20981]: pam_unix(sudo:session): session closed for user root
  57. 3月 28 19:00:02 localhost.localdomain systemd[1]: docker.service failed.
  58. 3月 28 19:01:01 localhost.localdomain systemd[1]: Started Session 314 of user root.
  59. -- Subject: Unit session-314.scope has finished start-up
  60. -- Defined-By: systemd
  61. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  62. -- 
  63. -- Unit session-314.scope has finished starting up.
  64. -- 
  65. -- The start-up result is done.
  66. 3月 28 19:01:01 localhost.localdomain CROND[21009]: (root) CMD (run-parts /etc/cron.hourly)
  67. 3月 28 19:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[21012]: starting 0anacron
  68. 3月 28 19:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[21018]: finished 0anacron

 

 

找了好久不知道什么原因,只能清除/etc/systemd/system/目录下的 docker.service和docker.service.d文件夹

重新安装,搞定!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/176673
推荐阅读
相关标签
  

闽ICP备14008679号