centos8 Failed to get properties: Access denied
centos8 Failed to get properties: Access denied
Failed to start docker.service: Access denied
今天在centos8上安装docker,参考以下网址
https://www.cnblogs.com/yufeng218/p/8370670.html
安装完了运行docker info显示错误
Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info
找了N多解决方案,什么daemon.json的、yum update的、systemctl start docker的都白搭,而且运行任何的systemctl命令都被拒绝,显示Failed to start docker.service: Access denied
最后找到个解决方案
https://superuser.com/questions/1125250/systemctl-access-denied-when-root/1130976
In my case, I had just upgraded systemd
and any systemctl
command was failing:
# systemctl daemon-reexec
Failed to reload daemon: Access denied
# systemctl status
Failed to read server status: Access denied
However according to the init
manpage, you can do the same thing by sending SIGTERM
to the daemon running as PID 1, which worked:
kill -TERM 1
This reloaded the daemon, after which all the systemctl
commands started working again.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
2016-02-02 kindeditor粘贴word文档内容时去除格式的方法?如何设置为默认无文本格式呢?