惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
D
Darknet – Hacking Tools, Hacker News & Cyber Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
G
Google Developers Blog
MyScale Blog
MyScale Blog
Google DeepMind News
Google DeepMind News
J
Java Code Geeks
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
Check Point Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Proofpoint News Feed
D
Docker
Jina AI
Jina AI
博客园 - 三生石上(FineUI控件)
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
Forbes - Security
Forbes - Security
MongoDB | Blog
MongoDB | Blog
Attack and Defense Labs
Attack and Defense Labs
Webroot Blog
Webroot Blog
A
About on SuperTechFans
Schneier on Security
Schneier on Security
Hacker News - Newest:
Hacker News - Newest: "LLM"
Microsoft Azure Blog
Microsoft Azure Blog
F
Fortinet All Blogs
IT之家
IT之家
The Last Watchdog
The Last Watchdog
腾讯CDC
Microsoft Security Blog
Microsoft Security Blog
Project Zero
Project Zero
B
Blog
Recorded Future
Recorded Future
博客园_首页
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
SegmentFault 最新的问题
Security Archives - TechRepublic
Security Archives - TechRepublic
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hacker News: Front Page
T
Threatpost
H
Heimdal Security Blog
Cloudbric
Cloudbric
Google Online Security Blog
Google Online Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog

jobcher on 打工人日志

2023-12-21 打工人日报 2023-12-20 打工人日报 2023-12-19 打工人日报 2023-12-18 打工人日报 2023-12-17 打工人日报 2023-12-16 打工人日报 2023-12-15 打工人日报 2023-12-14 打工人日报 2023-12-13 打工人日报 2023-12-12 打工人日报 2023-12-11 打工人日报 2023-12-10 打工人日报 2023-12-09 打工人日报 2023-12-08 打工人日报 2023-12-07 打工人日报 2023-12-06 打工人日报 2023-12-05 打工人日报 2023-12-04 打工人日报 2023-12-03 打工人日报 2023-12-02 打工人日报 2023-12-01 打工人日报 2023-11-30 打工人日报 2023-11-29 打工人日报 2023-11-28 打工人日报 2023-11-27 打工人日报 2023-11-26 打工人日报 2023-11-25 打工人日报 2023-11-24 打工人日报 2023-11-23 打工人日报 2023-11-22 打工人日报 2023-11-21 打工人日报 2023-11-20 打工人日报 2023-11-19 打工人日报 2023-11-17 打工人日报 2023-11-16 打工人日报 2023-11-15 打工人日报 2023-11-14 打工人日报 2023-11-13 打工人日报 2023-11-12 打工人日报 2023-11-11 打工人日报 2023-11-10 打工人日报 2023-11-09 打工人日报 2023-11-08 打工人日报 2023-11-07 打工人日报 2023-11-06 打工人日报 2023-11-05 打工人日报 2023-11-04 打工人日报 2023-11-03 打工人日报 2023-11-02 打工人日报 2023-11-01 打工人日报 2023-10-31 打工人日报 2023-10-30 打工人日报 2023-10-29 打工人日报 2023-10-28 打工人日报 2023-10-27 打工人日报 2023-10-26 打工人日报 2023-10-25 打工人日报 2023-10-24 打工人日报 2023-10-23 打工人日报 2023-10-22 打工人日报 2023-10-21 打工人日报 2023-10-20 打工人日报 2023-10-19 打工人日报 2023-10-18 打工人日报 2023-10-17 打工人日报 2023-10-16 打工人日报 2023-10-15 打工人日报 2023-10-14 打工人日报 2023-10-13 打工人日报 2023-10-12 打工人日报 2023-10-11 打工人日报 2023-10-10 打工人日报 2023-10-09 打工人日报 2023-10-07 打工人日报 2023-10-06 打工人日报 2023-10-05 打工人日报 2023-10-04 打工人日报 2023-10-03 打工人日报 2023-10-02 打工人日报 2023-10-01 打工人日报 2023-09-30 打工人日报 2023-09-29 打工人日报 2023-09-28 打工人日报 2023-09-27 打工人日报 2023-09-26 打工人日报 2023-09-25 打工人日报 2023-09-24 打工人日报 2023-09-23 打工人日报 2023-09-22 打工人日报 2023-09-21 打工人日报 2023-09-20 打工人日报 2023-09-19 打工人日报 2023-09-18 打工人日报 2023-09-17 打工人日报 2023-09-16 打工人日报 2023-09-15 打工人日报 2023-09-14 打工人日报 2023-09-13 打工人日报 2023-09-12 打工人日报 2023-09-11 打工人日报
docker 问题处理
2022-08-04 · via jobcher on 打工人日志

docker 无法启动

打开服务器输入docker ps,输出错误
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

怀疑是不是docker.services 部署没成功,systemctl start docker 启动 docker,结果服务器还是报错

Job for docker.service failed because the control process exited with error code.
See “systemctl status docker.service” and “journalctl -xe” for details.

systemctl status docker.service 输出日志:

 1● docker.service - Docker Application Container Engine
 2     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
 3     Active: failed (Result: exit-code) since Thu 2022-08-04 11:43:05 CST; 2min 57s ago
 4TriggeredBy: ● docker.socket
 5       Docs: https://docs.docker.com
 6    Process: 30432 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
 7   Main PID: 30432 (code=exited, status=1/FAILURE)
 8
 9Aug 04 11:43:05 master01 systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
10Aug 04 11:43:05 master01 systemd[1]: Stopped Docker Application Container Engine.
11Aug 04 11:43:05 master01 systemd[1]: docker.service: Start request repeated too quickly.
12Aug 04 11:43:05 master01 systemd[1]: docker.service: Failed with result 'exit-code'.
13Aug 04 11:43:05 master01 systemd[1]: Failed to start Docker Application Container Engine.

journalctl -xe 输出日志:

 1Aug 04 11:46:49 master01 systemd[1]: Starting Docker Socket for the API.
 2-- Subject: A start job for unit docker.socket has begun execution
 3-- Defined-By: systemd
 4-- Support: http://www.ubuntu.com/support
 5--
 6-- A start job for unit docker.socket has begun execution.
 7--
 8-- The job identifier is 58900.
 9Aug 04 11:46:49 master01 systemd[1]: Listening on Docker Socket for the API.
10-- Subject: A start job for unit docker.socket has finished successfully
11-- Defined-By: systemd
12-- Support: http://www.ubuntu.com/support
13--
14-- A start job for unit docker.socket has finished successfully.
15--
16-- The job identifier is 58900.
17Aug 04 11:46:49 master01 systemd[1]: Starting Docker Application Container Engine...
18-- Subject: A start job for unit docker.service has begun execution
19-- Defined-By: systemd
20-- Support: http://www.ubuntu.com/support
21--
22-- A start job for unit docker.service has begun execution.
23--
24-- The job identifier is 58830.
25Aug 04 11:46:49 master01 dockerd[30544]: unable to configure the Docker daemon with file /etc/docker/daemon.json: EOF
26Aug 04 11:46:49 master01 systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
27-- Subject: Unit process exited
28-- Defined-By: systemd
29-- Support: http://www.ubuntu.com/support
30--
31-- An ExecStart= process belonging to unit docker.service has exited.
32--
33-- The process' exit code is 'exited' and its exit status is 1.
34Aug 04 11:46:49 master01 systemd[1]: docker.service: Failed with result 'exit-code'.
35-- Subject: Unit failed
36-- Defined-By: systemd
37-- Support: http://www.ubuntu.com/support
38--
39-- The unit docker.service has entered the 'failed' state with result 'exit-code'.
40Aug 04 11:46:49 master01 systemd[1]: Failed to start Docker Application Container Engine.
41-- Subject: A start job for unit docker.service has failed
42-- Defined-By: systemd
43-- Support: http://www.ubuntu.com/support
44--
45-- A start job for unit docker.service has finished with a failure.
46--
47-- The job identifier is 58830 and the job result is failed.
48Aug 04 11:46:49 master01 sudo[30535]: pam_unix(sudo:session): session closed for user root

我运行了:

sudo dockerd –debug

输出日志:
unable to configure the Docker daemon with file /etc/docker/daemon.json: EOF

  • 解决方法:
1#如果 /etc/docker/daemon.json 为空
2vim /etc/docker/daemon.json
3# 添加
4{
5}
6#保存退出
7:wq

重启 docker

systemctl restart docker