Docker:Devices cgroup未挂载(Ubuntu 16.04)

9

我正在尝试在远程Web服务器上安装Docker,但是我遇到了一个令人沮丧的错误。我已经多次在此操作系统上安装了Docker,但从未出现过这种情况。

当执行命令sudo apt-get install -y docker-engine时,我卡在了这里,因为无法安装Docker引擎:

~# 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用户添加到了组中,并找到了一个建议,要在/etc/default/grub文件中添加GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1",但是该文件不存在!
我还尝试了sudo apt-get install cgroupfs-mount,但没有成功 :-(
感谢您的帮助!
1个回答

10

很遗憾,朋友们。目前还没有解决方案。原因是远程Web服务器的架构,即托管的虚拟机(VM)。

我的服务提供商告诉我,在同一环境中所有VM都使用相同的内核,因此dokker无法访问它。

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


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接