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

后端 未结 7 2240
迷失自我
迷失自我 2020-12-24 06:56

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

相关标签:
7条回答
  • 2020-12-24 07:50

    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
    
    0 讨论(0)
提交回复
热议问题