Docker在debianstream浪盒里面失败了

Docker版本为17.11.0-ce的Vagrant框中, 构build1caf76c ,这个docker命令失败:

docker run mongo:3.4 -v /home/vagrant/src/db:/db -p 27017:27017 --name mongo 

与以下错误消息:

 docker: Error response from daemon: cgroups: memory cgroup not supported on this system: unknown. ERRO[0027] error waiting for container: context canceled 

OS:

 Distributor ID: Debian Description: Debian GNU/Linux 8.9 (jessie) Release: 8.9 Codename: jessie 

有没有人有一个线索如何解决这个问题? 它与一个不超过几周前的杰西盒子一起工作。

谢谢 :)

我在Raspbian Stretch / Debian 9.1 / Kernel 4.9.65+ / Docker 17.11.0-ce上遇到了这个问题,并且可以通过在/boot/cmdline.txt和reboot中添加“cgroup_memory = 1”来解决这个问题。 现在看起来像这样:

 dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=xxxxxxxx-xx rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait cgroup_enable=memory cgroup_memory=1 swapaccount=1 

当使用x64 Debian时,需要调整/ etc / default / grub,例如:

 GRUB_CMDLINE_LINUX_DEFAULT="quiet cgroup_enable=memory cgroup_memory=1 swapaccount=1" 

然后用/ usr / sbin / update-grub&reboot重写bootloader

希望这有助于^ _ ^

更多信息: https : //archlinuxarm.org/forum/viewtopic.php?f=15&t=12086