3

Inside a Vagrant box with Docker version 17.11.0-ce build 1caf76c, this docker command fails:

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

with the following error message:

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

Does anyone have a clue how to fix this? It worked with an jessie box not older than a few weeks before.

Thanks :)

User9123
  • 179
  • 9
  • 1
    same message in a fresh vm using the debian:jessie, golang:latest (and may be other) docker images. Images build successfully in a native environment – DEY Nov 22 '17 at 08:20
  • 1
    Same for me, fresh install Raspbian Stretch Lite 4.9 and Docker 17.11.0-ce. – ovation22 Nov 23 '17 at 03:45
  • 1
    I rolled back to 17.06 and it works now. – User9123 Nov 23 '17 at 04:26
  • Rolled back to 17.09 and its working for me. – ovation22 Nov 23 '17 at 04:28
  • Docker `17.09` is the most recent **stable** version of Docker; so that's likely your issue. – TJ Biddle Nov 29 '17 at 04:51
  • @TJBiddle Vagrant uses get.docker.com script to install docker. This is advertised to ship the latest stable docker and that seems to be 17.11 – User9123 Nov 29 '17 at 11:47
  • @User9123 Then Vagrant is using that script incorrectly; or it's written incorrectly. The most stable release is 17.09 https://docs.docker.com/release-notes/docker-ce/ 17.11 shows up in "Edge Releases" – TJ Biddle Nov 29 '17 at 16:26

0 Answers0