dockerubuntu-14.04

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


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

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.


Solution

  • 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:

    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