docker使用centos7命令 systemctl 报错

$ systemctl status firewalld
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

解决方式

# 运行centos
# docker run -itd --name centos centos /bin/bash# 替换为:
# 获取systemctl权限
docker run --privileged -itd --name centos centos /usr/sbin/init# 进入终端
docker exec -it centos /bin/bash

参考
docker报错System has not been booted with systemd as init system (PID 1). Can’t operate. Failed to connect to bus: Host is down

docker报错:System has not been booted with systemd as init system (PID 1). Can‘t operate.相关推荐

  1. window10下WSL使用Ubuntu报错: System has not been booted with systemd as init system (PID 1). Can‘t operat

    用window10下WSL使用Ubuntu来用Docker 当我使用命令sudo systemctl start docker的时候报错: System has not been booted wit ...

  2. 排障集锦:九九八十一难之第十八难!-----System has not been booted with systemd as init system (PID 1). Can‘t operat

    报错现象如下 System has not been booted with systemd as init system (PID 1). Can't operate. Failed to conn ...

  3. System has not been booted with systemd as init system (PID 1). Can‘t operat

    原因 docker run -it centos /bash/bin 在容器中安装服务 systemctl start xxx.service 报错 System has not been boote ...

  4. WSL 错误 System has not been booted with systemd as init system (PID 1). Can‘t operate

    描述 项目 描述 操作系统 Windows 10 专业版 版本 WSL 2 前情 在 适用与 Linux 的 Windows 的子系统(WSL) 默认情况下是无法使用 systemctl 命令,使用该 ...

  5. win11安装的Ubuntu20.04子系统出现System has not been booted with systemd as init system (PID 1)问题的解决流程

    目录 一.前言 二.具体解决方法 第一步:切换root用户至自己账号 第二步:重新安装xrdp 第三步:重新配置端口并启动xrdp 第四步:打开远程连接窗口 第五步:点击连接,开始进入Linux子系统 ...

  6. docker配置daemon.json或docker.service后重启docker报错的问题

    docker配置daemon.json或docker.service后重启docker报错的问题 在更改或创建docker的配置文件时,我们通常都会重启使docker载入这些配置.但有的时候重启会报错 ...

  7. docker报错:driver failed programming external connectivity on endpoint, iptables:No chain by that name

    docker 报错: Error response from daemon: Cannot restart container hello: driver failed programming ext ...

  8. npm install安装失败,报错记录之The operation was rejected by your operating system. node-sass无法安装,且禁用淘宝镜像

    因为公司电脑都由管理员管控,使用自己的账号是无法执行一些需要管理员权限的命令,所以在刚到公司时,使用管理员账号安装了node,配置了node缓存目录node_cache.node_global,以及设 ...

  9. 启动docker报错the following directives are specified both as a flag and in the configuration file: defau

    启动docker报错docker/daemon.json: the following directives are specified both as a flag and in the confi ...

最新文章

  1. html运行代码出现问号乱码_Java 0基础入门(初识Html)
  2. TF学习——TF之Tensorboard:Tensorflow之Tensorboard可视化简介、入门、使用方法之详细攻略
  3. 1053 住房空置率(PAT乙级 C++ 坑点分析)
  4. python学习笔记四——数据类型
  5. 适用于ATI卡的GPU计算MD5的小程序源码,基于AMD APP SDK开发
  6. 爬虫用java还是python_网络爬虫是用python比较好,还是Java比较好呢?
  7. win10中关闭应用程序自动更新
  8. linux加速度传感器校准,加速度传感器校准方法及装置与流程
  9. ASP.NET连接SQL、Access、Excel数据库(三)——工厂模式
  10. Linux有关知识补充
  11. tkinter制作选择文件夹对话框
  12. 3g无线图传点到点模式与服务器模式比较,4G网络的几个关键技术指标 - 3G和4G LTE网络架构之间的区别...
  13. python斗地主游戏源码_Python实现的斗地主引擎
  14. IPSec:IKEv2协议详解
  15. Halcon XLD 算子集合
  16. 计算机在英语中有哪些运用,计算机在英语教学中的运用
  17. mac book air 装win7
  18. company corporation enterprise 等等公司名称的区别
  19. 软件设计中的“自上而下”和“自下而上”
  20. 学习C++可以做什么,可以从事哪些领域的工作

热门文章

  1. 读书是进步的源泉 | 实践是前进的基石
  2. 【分享论坛】最新steam离线账号/单机资源/优质软件/资源问题解答
  3. 【连续介质力学】弹性与超弹性、粘弹性、弹塑性、柯西弹性
  4. 好的口碑怎么打造?环环相扣的每一步让实在RPA来提效
  5. reversing.kr学习之路-ransomeware
  6. 嵌入式系统体系结构编程 Ubuntu之QTE环境搭建友善之臂Tiny4412
  7. 显式拥塞通告(ECN)及其在Linux上的实现
  8. 计算机考试用户没有注册类,电脑中出现没有注册类别的错误提示的多种解决方法...
  9. 让黑莓模拟器支持中文显示
  10. 如何为linux kernel贡献代码