Comments (15)
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.
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.
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.
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.
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.
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.
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.
@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.
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.
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.
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.
I am getting:
root@24c8e810e17e:/# mkdir -p /sys/fs/cgroup
mkdir: cannot create directory '/sys/fs/cgroup': No such file or directory
from dind.
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.
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.
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)
- Support Docker v1.13 HOT 1
- ran into some issues running the docker run command HOT 1
- Cannot restart docker service inside the container HOT 1
- dind, swarm cluster, and container communication HOT 1
- Docker in Docker inside play-with-docker: "Permission denied" HOT 1
- Connecting another running container to Docker in Docker socket HOT 1
- Support: How to install apt-get inside Dockerfile HOT 1
- Error: Timed out trying to connect to internal docker host.
- Could base image be upgraded from Ubuntu 14.04 to 16.04? E.g. to allow Java installation in derived images HOT 1
- Fedora image not working HOT 1
- docker: Error response from daemon HOT 1
- hold on port number listen, but not interactive-able HOT 2
- Run Docker-in-Docker and expose the inside Docker to the outside world, but how to inside dind expose this already taken port number again? HOT 1
- Getting error with centos
- Docker in Docker: Not in privileged mode. HOT 8
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? HOT 5
- DinD DNS resolution
- Error creating default "bridge" network: Failed to Setup IP tables
- wrapdocker is missing in docker:dind HOT 1
- docker-compose in DinD HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dind.