Giter Site home page Giter Site logo

Comments (15)

lcheng61 avatar lcheng61 commented on August 17, 2024

I built a dind with the Dockerfile provided in this github repository. But still I got the same issue. I'm using kernel 2.6.32-431. Can someone help ?

mkdir: cannot create directory '/sys/fs/cgroup': No such file or directory
mount: mount point /sys/fs/cgroup does not exist
Could not make a tmpfs mount. Did you use -privileged?
docker run --privileged -d -p 4444 -e PORT=4444 dind

Thanks,

from dind.

oillio avatar oillio commented on August 17, 2024

I am running into the same problem. I am on CentOS 6, docker version 1.1.2. There is no cgroup directory under /sys/fs (in the host or the container). However, there is a cgroup at the root of the filesystem.

I tried to change the wrapdocker script to set CGROUP to:
CGROUP=/cgroup

That ended up crashing the OS.

from dind.

jpetazzo avatar jpetazzo commented on August 17, 2024

Hmmm. I talked with other users, who mentioned that they had to set CGROUP to /cgroup (which is also what the dind script in Docker does: https://github.com/docker/docker/blob/master/hack/dind#L17)

However, if it crashes the machine, it's definitely a very bad sign.

Which version of CentOS are you using? 6.5 should be fine; 6.4 is more iffy.

from dind.

erdebee avatar erdebee commented on August 17, 2024

Same as oillio here, also caused a crash when I changed the CGROUP var.

root$ cat /proc/version

Linux version 2.6.32-431.23.3.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) )

I hope someone comes up with a solution

from dind.

jaoki avatar jaoki commented on August 17, 2024

I was using Centos6.5

[root@centos65-1 ~]# uname -r
2.6.32-431.el6.x86_64

and had the same issue.

I upgraded the kernel by following this nice document. http://nareshv.blogspot.com/2014/02/installing-docker-08-version-on-centos.html and the problem seems be solved.

from dind.

oillio avatar oillio commented on August 17, 2024

I am on a similar version of Centos 6.5: 2.6.32-431.17.1.el6.x86_64
I will try upgrading and see if that solves the issue.

from dind.

kyleschlosser avatar kyleschlosser commented on August 17, 2024

Is there any updated advice on this issue? I am on Redhat 6.6 with Kernel 2.6.32-504.8.1.el6.x86_64 and Docker 1.5.0 and I am looking for a workaround.

from dind.

jpetazzo avatar jpetazzo commented on August 17, 2024

@kyleschlosser, which exact message are you getting?

This one:

mkdir: cannot create directory '/sys/fs/cgroup': No such file or directory
mount: mount point /sys/fs/cgroup does not exist
Could not make a tmpfs mount. Did you use -privileged?

or something else?

from dind.

kyleschlosser avatar kyleschlosser commented on August 17, 2024

Yes, that is the error I am getting:

$ docker run --privileged -t -i dind
mkdir: cannot create directory '/sys/fs/cgroup': No such file or directory
mount: mount point /sys/fs/cgroup does not exist
Could not make a tmpfs mount. Did you use --privileged?

from dind.

glaudiston avatar glaudiston commented on August 17, 2024

I'm with this issue too.

There is no /sys/fs/cgroup ...

$ ls /sys/fs
ext4

Some system info:

$ uname -a
Linux kimo.cit 2.6.32-504.12.2.el6.x86_64 #1 SMP Sun Feb 1 12:14:02 EST 2015 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.6 (Santiago)

$ cat /etc/lsb-release
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch


$ cat /proc/cgroups 
#subsys_name    hierarchy       num_cgroups     enabled
cpuset  1       1       1
ns      0       1       1
cpu     2       1       1
cpuacct 3       1       1
memory  0       1       1
devices 4       1       1
freezer 5       1       1
net_cls 6       1       1
blkio   7       1       1
perf_event      0       1       1
net_prio        0       1       1

from dind.

jpetazzo avatar jpetazzo commented on August 17, 2024

This might be because you're using 2.6.32 kernel, and/or some SELinux restriction.

Can you:

  • test manually if you can mkdir /sys/fs/cgroup manually in the container?
  • test with a more recent kernel?

Thank you!

from dind.

cancan101 avatar cancan101 commented on August 17, 2024

I am getting:

root@24c8e810e17e:/# mkdir -p /sys/fs/cgroup
mkdir: cannot create directory '/sys/fs/cgroup': No such file or directory

from dind.

jpetazzo avatar jpetazzo commented on August 17, 2024

This is very confusing. Maybe SELinux? Check kernel logs, try with a more permissive profile? Sorry, I wish I could be more useful there, but I kind of threw the towel with 2.6 kernels... Really sorry :/

from dind.

yakhyadabo avatar yakhyadabo commented on August 17, 2024

I'm experiencing the same issue. Here's the output message of the daemon :

[mkdir: cannot create directory '/sys/fs/cgroup': No such file or directory
mount: mount point /sys/fs/cgroup does not exist
Could not make a tmpfs mount. Did you use -privileged?"]

OS : Centos 6.6
Kernel : 2.6

Docker version :
Client version: 1.5.0
Client API version: 1.17

from dind.

jpetazzo avatar jpetazzo commented on August 17, 2024

There is now an official docker:dind image upstream! I invite you to test it, since it is actively maintained. Thank you!

from dind.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.