【问题标题】:Problem while checking the status of the docker in Jupyter notebook在 Jupyter notebook 中检查 docker 状态时出现问题
【发布时间】:2020-01-30 12:34:11
【问题描述】:

我使用来自link 的命令在我的 Jupyter 笔记本中为我的项目安装 docker。我使用命令安装了 docker

!sudo apt install docker-ce

但在那之后,当我尝试使用命令检查 docker 的状态时。

!sudo systemctl status docker

我收到以下错误。

System has not been booted with systemd as init system (PID 1). Can't operate.

我在links 中看到了此类问题的答案,但这并没有解决我的问题。 对于以下命令

!service --status-all

我得到以下我不知道的结果。有人可以帮我解释我错过了什么吗?

 [ - ]  dbus
 [ ? ]  hwclock.sh
 [ ? ]  kmod
 [ - ]  procps
 [ - ]  rsync
 [ + ]  udev
 [ - ]  x11-common

这对你们中的一些人来说可能是微不足道的。任何帮助将不胜感激。

【问题讨论】:

    标签: docker jupyter-notebook


    【解决方案1】:

    您可以使用以下命令尝试具有系统 D 的 Ubuntu 的映像:

    docker run -d --name systemd-ubuntu --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro jrei/systemd-ubuntu

    然后你只需要运行:

    docker exec -it systemd-ubuntu /bin/bash

    您可以在那里安装、启动和重新启动您需要的任何服务。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-01
      • 1970-01-01
      • 2019-01-07
      • 1970-01-01
      • 2020-10-19
      • 1970-01-01
      相关资源
      最近更新 更多