在 ubuntu 14.04 上启动 docker 守护进程时出错(设备 cgroup 未安装) [英] error starting docker daemon on ubuntu 14.04 (Devices cgroup isn't mounted)

查看:52
本文介绍了在 ubuntu 14.04 上启动 docker 守护进程时出错(设备 cgroup 未安装)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照 docker 说明安装并验证了 docker 安装(来自 http://docs.docker.com/linux/step_one/).

I followed docker instructions to install and verify the docker installation (from http://docs.docker.com/linux/step_one/).

我在 2 台 Ubuntu 14.04 机器上尝试过,在两台机器上启动 docker daemon 时都出现以下错误:

I tried on 2 Ubuntu 14.04 machines and on both I got following error when starting docker daemon:

$ sudo docker daemon
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock) 
INFO[0000] [graphdriver] using prior storage driver "aufs" 
INFO[0000] Option DefaultDriver: bridge                 
INFO[0000] Option DefaultNetwork: bridge                
WARN[0000] Running modprobe bridge nf_nat br_netfilter failed with    message: modprobe: WARNING: Module br_netfilter not found. , error: exit status 1 
INFO[0000] Firewalld running: false                     
WARN[0000] Your kernel does not support cgroup memory limit: mountpoint for memory not found 
WARN[0000] mountpoint for cpu not found                 
FATA[0000] Error starting daemon: Devices cgroup isn't mounted 

感谢您对解决此问题的任何帮助.

I appreciate any help to resolve this issue.

推荐答案

注意:看起来这个问题只出现在 Ubuntu 14.04 及更早版本中.较新的 Ubuntu 版本不需要这个.

尝试以下操作:

  • 以具有 sudo 权限的用户身份登录 Ubuntu.

  • Log into Ubuntu as a user with sudo privileges.

编辑/etc/default/grub 文件.

Edit the /etc/default/grub file.

如下设置 GRUB_CMDLINE_LINUX 值:

Set the GRUB_CMDLINE_LINUX value as follows:

GRUB_CMDLINE_LINUX=cgroup_enable=memory swapaccount=1"

保存并关闭文件.

更新 GRUB.

$ sudo update-grub

重新启动系统.

有些人报告说重新启动了 docker 守护进程:

Some folks have reported restarting the docker daemon works:

sudo systemctl restart docker

如上所述,较新的 docker 文档没有请在新的 Docker 版本中参考.

更新

这适用于使用 Ubuntu 14.04 或更早版本的一些人:

This works for some folks on Ubuntu 14.04 or earlier:

sudo apt-get install cgroup-lite

这篇关于在 ubuntu 14.04 上启动 docker 守护进程时出错(设备 cgroup 未安装)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆