用window10下WSL使用Ubuntu来用Docker
当我使用命令sudo systemctl start docker的时候报错:
System has not been booted with systemd as init system (PID 1). Can’t operate.
查了原因:
如果是一般的Linux操作系统,可能是因为Linux中没有使用systemd,想用systemd命令来管理Linux上的服务,因此会报错,很可能是使用的是经典的SysV init(sysvinit)系统。
但我这个是window10下WSL的Ubuntu,就会使SysV init而不是systemd。
解决方法:
更换命令,用SysV init的命令代替systemd的

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

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

    docker使用centos7命令 systemctl 报错 $ systemctl status firewalld System has not been booted with systemd ...

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

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

  3. 排障集锦:九九八十一难之第十八难!-----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 ...

  4. 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 ...

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

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

  6. 【ubuntu】ubuntu下用make编译程序报错找不到openssl/conf.h

    ubuntu下用make编译程序报错找不到openssl/conf.h 安装libssl-dev:i386,sudo apt-get install libssl-dev:i386 看好版本,如果不加 ...

  7. ubuntu下flann库编译报错处理

    ubuntu下flann库编译报错处理 编译flann的时候显示以下报错: CMake Error at src/cpp/CMakeLists.txt:33 (add_library):No SOUR ...

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

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

  9. [问题已处理]-ubuntu 报错Directory index full

    ubuntu 报错Directory index full! 今天有同事反馈 程序异常.查看/var/log/kern.log有如下报错 直接运行df -i 看到服务器的inode还是有空余的.du ...

最新文章

  1. 细节:js 创建对象的几种模式举例
  2. Linux支持多种平台
  3. 服务器,工作站和终端机
  4. 对于python来说、一个模块就是一个文件-python常用模块
  5. python3.6.0安装教程-CentOS7安装Python3.6
  6. 关于jetty的那些奇葩问题
  7. 【Scratch】青少年蓝桥杯_每日一题_1.1_美国队长盾牌
  8. web worker技术-js新线程
  9. 洛谷 P2257 YY的GCD
  10. mySQL用户和权限管理v1
  11. 小米笔记本PRO BIOS忘记密码后重置教程
  12. ISO26262功能安全--产品开发过程
  13. 不爬山的人很少摔跤——Celeste蔚蓝的叙事理念与关卡设计(一)
  14. Unity 手机VR GoogleVR 详细配置教程
  15. 一个简单的考勤签到程序
  16. 依托开源技术,中国联通研发CU-DC/OS推进IT综合治理的实践
  17. 一加7t人脸识别_一加7T新机设计图发布 这款手机的外观设计如何
  18. 云服务器和虚拟主机哪个好?两者有什么优缺点?
  19. eCharts给图标添加边框
  20. 如何看待同济版《线性代数》引发激烈争议?

热门文章

  1. HM代码阅读2:AMVP预测函数Void TEncSearch::xEstimateMvPredAMVP()
  2. 本地.m3u8播放器实现
  3. 反向放大器为何要使用同相增益(也称作噪声增益),来计算带宽
  4. spacemacs email layer
  5. JVM元数据空间增长分析
  6. Tapestry 5 组件模板
  7. 从复旦危化品中学到的项目经验
  8. Linux进程管理之“四大名捕”
  9. 古月居ROS暑期学校无人机部分学习笔记
  10. Springboot上传视频到阿里云(视频点播)和aliyun-java-sdk-vod依赖报红问题