error starting docker daemon on ubuntu 14.04 (Devices cgroup isn't mounted)

点点圈 提交于 2019-11-29 23:52:35

Try the following:

  • Log into Ubuntu as a user with sudo privileges.
  • Edit the /etc/default/grub file.
  • Set the GRUB_CMDLINE_LINUX value as follows:

    GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"

  • Save and close the file.

  • Update GRUB.

    $ sudo update-grub

  • Reboot your system.

As per this.

I resolved this issue by starting the docker deamon manually using:

sudo service docker start

I've had this issue with debian.

The package cgroupfs-mount solved that.

sudo aptitude install cgroupfs-mount

I just had to remove any mounts of cgroup from /etc/fstab and I solved the problem for Devices cgroup isn't mounted. I think that Module br_netfilter not found is just a warning and does not prevent Docker from starting. But you can fix it by installing:

apt-get install linux-image-3.19.0-33-generic linux-image-extra-3.19.0-33-generic

The "extra" is needed because aufs is not anymore included with basic image in Ubuntu.

maybe need packages:

apt-get install aufs-tools
apt-get install cgroup-lite

In my case, I didn't have to install or config anything new. Docker was running fine before this failure. Try restarting docker (eg. systemctl restart docker). If it fails, shutdown and cold-boot the machine. Ensure docker is running. After 129 days of uptime, my docker just got in a weird, bad state.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!