启动docker报错Failed to listen on Docker Socket for the API.
1.启动时报错查看日志发现
# journalctl -xe
Failed to listen on Docker Socket for the API.
查找socket这个配置文件,修改如下
# find / -name docker.socket
/etc/systemd/system/sockets.target.wants/docker.socket
/lib/systemd/system# vim docker.socket
[Unit]
Description=Docker Socket for the API
[Socket]
ListenStream=/var/run/docker.sock
SocketMode=0660
SocketUser=root
SocketGroup=root # 这里原来是docker改成root即可,保存退出
[Install]
WantedBy=sockets.target
# systemctl enable docker.service
# systemctl enable docker.socket
再次重启docker,OK
docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Mar 2021-03-25 13:04:49 CST; 4s ago
Docs: https://docs.docker.com
Main PID: 35283 (dockerd)
Tasks: 9
CGroup: /system.slice/docker.service
└─35283 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
March 25 13:04:49 harbor-https-144 dockerd[35283]: time="2021-03-25T13:04:49.033752207+08:00" level=info msg="ClientConn switching balancer to \"pick_first\"" m
March 25 13:04:49 harbor-https-144 dockerd[35283]: time="2021-03-25T13:04:49.120893423+08:00" level=warning msg="Your kernel does not support swap memory limit"
March 25 13:04:49 harbor-https-144 dockerd[35283]: time="2021-03-25T13:04:49.120928599+08:00" level=warning msg="Your kernel does not support CPU realtime sched
March 25 13:04:49 harbor-https-144 dockerd[35283]: time="2021-03-25T13:04:49.121049967+08:00" level=info msg="Loading containers: start."
March 25 13:04:49 harbor-https-144 dockerd[35283]: time="2021-03-25T13:04:49.395286964+08:00" level=info msg="Default bridge (docker0) is assigned with an IP ad
March 25 13:04:49 harbor-https-144 dockerd[35283]: time="2021-03-25T13:04:49.600646552+08:00" level=info msg="Loading containers: done."
March 25 13:04:49 harbor-https-144 dockerd[35283]: time="2021-03-25T13:04:49.640003408+08:00" level=info msg="Docker daemon" commit=8728dd2 graphdriver(s)=overl
March 25 13:04:49 harbor-https-144 dockerd[35283]: time="2021-03-25T13:04:49.640101482+08:00" level=info msg="Daemon has completed initialization"
March 25 13:04:49 harbor-https-144 dockerd[35283]: time="2021-03-25T13:04:49.704265015+08:00" level=info msg="API listen on /var/run/docker.sock"
March 25 13:04:49 harbor-https-144 systemd[1]: Started Docker Application Container Engine.
启动docker报错Failed to listen on Docker Socket for the API.的更多相关文章
- windows下配置redis集群,启动节点报错:createing server TCP listening socket *:7000:listen:Unknown error
windows下配置redis集群,启动节点报错:createing server TCP listening socket *:7000:listen:Unknown error 学习了:https ...
- docker报错Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
docker报错Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon run ...
- 启动Myeclipse报错“Failed to create the Java Virtual Machine”的解决办法
我安装的是Myeclipse 10.7.1.装上好久没用,今天启动突然报错:Failed to create the Java Virtual Machine. 检查Myeclipse安装好使用时好的 ...
- 启动Myeclipse报错“Failed to create the Java Virtual Machine”的解决办法
我安装的是Myeclipse 10.7.1.装上好久没用,今天启动突然报错:Failed to create the Java Virtual Machine. 检查Myeclipse安装好使用时好的 ...
- mac 启动php-fpm报错 failed to open configuration file '/private/etc/php-fpm.conf': No such file or direc
直接运行,有报错找不到配置文件. $ php-fpm [11-Jan-2014 16:03:03] ERROR: failed to open configuration file '/private ...
- docker 报错: Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
最近在 Windows 子系统 WSL 上面安装了一个 ubuntu18.04, 安装完docker 跑 hello-world 的时候报错了 docker: Cannot connect to th ...
- 使用elasticsearch启动项目报错failed to load elasticsearch nodes 。。。。。No type specified for field [name]
failed to load elasticsearch nodes .....No type specified for field [name]翻译: 加载ElasticSearch节点失败... ...
- docker 报错Failed to start Docker Storage Setup. 的处理基本都是容器满了
:: localhost docker-storage-setup: Volume group extents): required. Apr :: localhost systemd: docker ...
- centos7启动网卡报错(Failed to start LSB: Bring up/down networking )
systemctl status network.service systemctl stop NetworkManager systemctl disable NetworkManager syst ...
随机推荐
- 题解0011:图书管理(哈希、vector)
信奥一本通--哈希 里的例题2 题目链接:http://ybt.ssoier.cn:8088/problem_show.php?pid=1456 题目描述:两个命令,一个是进一本名字为s的图书,一个是 ...
- C++基础-1-内存管理(全局区、堆区、栈区)
1. 内存管理 1.1 全局区 1 #include<iostream> 2 using namespace std; 3 4 // 全局变量 5 int g_a = 10; 6 int ...
- 浅谈 UNIX、Linux、ios、android 他们之间的关系
开源Linux 一个执着于技术的公众号 Unix, 简化形成了Linux,Linux则是Android的内核,而苹果则是使用unix系统作为ios和macos的内核. 几个系统出现的时间 UNIX系统 ...
- SSH 证书登录教程
开源Linux 专注分享开源技术知识 SSH 是服务器登录工具,提供密码登录和密钥登录. 但是,SSH 还有第三种登录方法,那就是证书登录.很多情况下,它是更合理.更安全的登录方法,本文就介绍这种登录 ...
- Redis设计与实现3.3:集群
集群 这是<Redis设计与实现>系列的文章,系列导航:Redis设计与实现笔记 集群中的节点 创建集群 通过 CLUSTER NODE 命令可以查看当前集群中的节点.刚启动时,默认每一台 ...
- Fail2ban 配置详解 监禁配置(jail.conf)
### # 包含配置 ### [INCLUDES] # after = # 在加载本配置文件之后再加载指定的独立配置文件. before = paths-debian.conf # 在加载本配置文件之 ...
- 06vim --- gcc库的制作及使用
VIM 命令模式下的操作 保存退出 快捷键 操作 ZZ 保存退出 代码格式化 快捷键 操作 gg=G 代码的格式化 光标移动(键盘上下左右键课代替) 快捷键 操作 h 光标左移 j 光标下移 k 光标 ...
- Activate-or-Not:learning-customized-activation
关于activate-or-Not的PPT paper code step1 step2 step3 step4 step5 step6 step7 step8 step9 step10
- 软件推荐 ---一款优秀的通信组件 HP_Socket
* HP-Socket 官方网站:http://www.jessma.org* HP-Socket 项目主页:http://www.oschina.net/p/hp-socket* HP-Socket ...
- Tmux终端复用神器使用心得
tmux在连接远程服务器做实验时很有帮助,可以为每一个项目设置一个Session,在Session中设置不同的Window同时跑多个实验,Window本身还可以分割为多个Pane,在一个视野内利用多个 ...