error starting docker daemon on ubuntu 14.04 (Devi

2020-02-17 06:46发布

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.

7条回答
Emotional °昔
2楼-- · 2020-02-17 07:00

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.

查看更多
Viruses.
3楼-- · 2020-02-17 07:01

I've had this issue with debian.

The package cgroupfs-mount solved that.

sudo aptitude install cgroupfs-mount
查看更多
Luminary・发光体
4楼-- · 2020-02-17 07:11

I just had this problem on Fedora 31. The solution as described here is to append systemd.unified_cgroup_hierarchy=0 to the GRUB_CMDLINE_LINUX var in /etc/sysconfig/grub.

(In my case, GRUB_CMDLINE_LINUX="resume=/dev/mapper/fedora-swap rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet systemd.unified_cgroup_hierarchy=0")

Then run grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg and restart.

查看更多
家丑人穷心不美
5楼-- · 2020-02-17 07:12

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.

查看更多
家丑人穷心不美
6楼-- · 2020-02-17 07:13

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.

查看更多
狗以群分
7楼-- · 2020-02-17 07:17

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

sudo service docker start

查看更多
登录 后发表回答