Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Raspbian docker: Error response from daemon: cgroups: memory cgroup not supported on this system: unknown

I am new to docker, I plug my PI3 to test some stuff and I'm already facing an error, I can't figured that out myself.

So I freshly install raspbian and docker.

That's my install log

install log

Then I try the classic hello-word test

and there is the log

hello world test

like image 691
Pablo Colson Avatar asked Nov 27 '17 22:11

Pablo Colson


2 Answers

It looks 17.11.0 has the problem.

Could you try to install the old one as below ?

$ sudo apt install docker-ce=17.09.0~ce-0~raspbian

Or wait for the fix.

(2017.12.5)
It looks 2017-11-29-raspbian-stretch has same issue. To avoid upgrading by apt upgrade, Do:
sudo apt-mark hold docker-ce.
And unhold when it fixes.

like image 88
mt08 Avatar answered Nov 09 '22 07:11

mt08


Another solution is to add cgroup_enable=memory cgroup_memory=1 in /boot/cmdline.txt at the end of the line and reboot.

like image 39
agilob Avatar answered Nov 09 '22 09:11

agilob