启动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 ...
随机推荐
- S3C2410——LED灯实验
一.S3C2410输入/输出的原理 Linux主要有字符设备.块设备和网络设备3类驱动程序,我们一般编写的驱动都是字符设备驱动程序. 二.程序部分 编写程序控制3个LED灯,代码分为2个部分:控制LE ...
- Ansible的参数介绍
安装完成ansible后查看ansible的参数:ansible -h ansible 命令格式:Usage: ansible <host-pattern> [options] ansib ...
- Windows IDEA Community 报错
运行时报错 "CreateProcess error=206,文件名或扩展名太长" 解决方法:https://plugins.gradle.org/plugin/ua.eshepe ...
- vs.net调试ArcGIS Engine代码查看变量时,提示“要检查本机对象,请启用本机代码调试。” 的解决方法
用vs2017 调试 查看ArcGIS Engine 的变量时 会提示如下图所示的错误: 解决方法: 工具->选项->调试->常规->使用托管的兼容模式 如下图所示: 2.设置 ...
- Python技法:用argparse模块解析命令行选项
1. 用argparse模块解析命令行选项 我们在上一篇博客<Linux:可执行程序的Shell传参格式规范>中介绍了Linux系统Shell命令行下可执行程序应该遵守的传参规范(包括了各 ...
- 好客租房39-react组件基础总结
1组件的两种创建方式:函数组件和类组件 2无状态函数组件 负责静态结构展示 3有状态组件 负责更新ui 让页面动起来 4绑定事件注意this指向问题 5使用受控组件创建表单 6完全利用js语言的能够力 ...
- B - A Simple Task
https://vjudge.net/contest/446582#problem/B 这道题是一道不错的线段树练代码能力的题. #include<bits/stdc++.h> using ...
- 第一次的ssm整合
数据库表 导入依赖 <dependencies> <dependency> <groupId>javax.servlet</groupId> <a ...
- 【C++ 字符串题目】 输入三个人名,按字母顺序排序输出
题目来源:https://acm.ujn.edu.cn Problem A: [C++ 字符串] 输入三个人名,按字母顺序排序输出 Time Limit: 1 Sec Memory Limit: 1 ...
- Amazon 消息订阅对接
亚马逊的api 谁用谁知道...... 除了坑还是坑 头疼一周整出来,分享给铁汁们 amazon 的订阅思维,我只能说外国人脑回路有点长 下面就讲讲具体流程步骤: 第一步: 参照官方教程:设置通知(A ...