Docker:设备 cgroup 未安装(Ubuntu 16.04)

标签 docker ubuntu-16.04

我正在尝试在远程网络服务器上的 Ubuntu 16.04 上安装 docker。但是,我收到一个让我非常沮丧的错误。我已经安装了很多次 docker,也在这个操作系统上,但这从未发生过。

我卡在sudo apt-get install -y docker-engine,无法安装docker-engine:

~# systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since So 2017-03-05 17:47:20 CET; 32s ago
     Docs: https://docs.docker.com
 Main PID: 18194 (code=exited, status=1/FAILURE)

dockerd[18194]: time="2017-03-05T17:47:20.567753592+01:00" level=error msg="'overlay' not found as a supported filesystem on this host. Please e
dockerd[18194]: time="2017-03-05T17:47:20.569299675+01:00" level=error msg="'overlay' not found as a supported filesystem on this host. Please e
dockerd[18194]: time="2017-03-05T17:47:20.591796895+01:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
dockerd[18194]: time="2017-03-05T17:47:20.592394882+01:00" level=warning msg="Your kernel does not support oom control"
dockerd[18194]: time="2017-03-05T17:47:20.592410368+01:00" level=warning msg="Your kernel does not support memory swappiness"
dockerd[18194]: time="2017-03-05T17:47:20.592421460+01:00" level=warning msg="Your kernel does not support kernel memory limit"
dockerd[18194]: time="2017-03-05T17:47:20.592427398+01:00" level=warning msg="Unable to find cpu cgroup in mounts"
dockerd[18194]: time="2017-03-05T17:47:20.592458649+01:00" level=warning msg="Unable to find cpuset cgroup in mounts"
dockerd[18194]: time="2017-03-05T17:47:20.592490516+01:00" level=warning msg="mountpoint for pids not found"
dockerd[18194]: Error starting daemon: Devices cgroup isn't mounted

我将 root 添加到组中,还找到了将 GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1" 添加到文件/etc/default/grub 的建议,但该文件不存在!

我也试过 sudo apt-get install cgroupfs-mount 但没有成功:-(

感谢您的帮助!

最佳答案

所以,伙计们。不幸的是,没有解决方案。原因是远程网络服务器的架构,一个托管的虚拟机。 我的供应商告诉我,所有虚拟机在一个环境中都使用相同的内核,因此 dokker 无法访问它。

现在唯一的选择是切换到另一台服务器。

关于Docker:设备 cgroup 未安装(Ubuntu 16.04),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42612110/

相关文章:

ssl - Docker 容器 SSL 证书

docker - Dockerfile中的mkdir .ssh,文件夹不存在吗?

docker - 如何在 docker build 期间接受许可协议(protocol)?

python - 在 Ubuntu 上使用 Python Selenium 上传文件

macos - Boot2Docker:通过 LAN 连接到容器

node.js - 为 mongoDB 设置身份验证 - DOCKER

docker - 如何在 VsCode 的 docker 中调试我的 Startup.cs(调试器附加得太晚了)

linux - 尝试在 Ubuntu 中使用 Wine 运行 Windows 应用程序时缺少 mfc140u.dll

sql-server - 如何在UBUNTU上安装SQL Server Native Client 11.0?

R 3.4.1 "Single Candle"个人库路径错误 : unable to create ‘NA’