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

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

sudo service docker start


Note: Looks like this issue was only present in Ubuntu 14.04 and earlier. The newer Ubuntu versions don't need this.

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.

Some folks have reported restarting the docker daemon works:

sudo systemctl restart docker

As noted above the newer docker documentation doesn't refer to this in the new Docker versions.

Update

This works for some folks on Ubuntu 14.04 or earlier:

sudo apt-get install cgroup-lite

maybe need packages:

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