Description of problem: "docker run" will error out when cgroups are not present: "[error] commands.go:2459 Error resize: Error: bad file descriptor" Version-Release number of selected component (if applicable): 0.7 0.20.rc7.el6 How reproducible: always Steps to Reproduce: 1. yum --enablerepo=epel-testing install docker-io 2. service docker start 3. docker run -i -t ubuntu /bin/bash Actual results: "[error] commands.go:2459 Error resize: Error: bad file descriptor" Expected results: BASH prompt in the container Additional info: Installing cgroups fixes the problem: "yum -y install libcgroup && service cgconfig start"
*** Bug 1035319 has been marked as a duplicate of this bug. ***
The same is likely true for fedora, but libcgroup is already landed. I will add the Requires: not inside a conditional just for RHEL
The new package is building in koji, and will be ready for validation shortly. http://koji.fedoraproject.org/koji/taskinfo?taskID=6233070
docker-io-0.7.0-2.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/docker-io-0.7.0-2.el6
docker-io-0.7.0-9.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/docker-io-0.7.0-9.el6
docker-io-0.7.0-10.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/docker-io-0.7.0-10.el6
Reopening. docker-io-0.7.0-10.el6 adds the dependency on libcgroup, but still doesn't ensure that cgconfig is actually started. Starting docker with either service start docker or automatically via chkconfig docer on still results in a non-functioning docker service due to missing cgroups on my rhel6 install: # service docker start Starting docker: [ OK ] # docker run -n -i -t mattdm/fedora /bin/bash [error] commands.go:2470 Error resize: Error: bad file descriptor # cat /proc/mounts |grep cgroup # and after chkconfig docker on and a reboot: # service cgconfig status Stopped # service docker status docker (pid 1477) is running... # cat /proc/mounts |grep cgroup #
For sure this should be added to the init.d file: # Required-Start: $network cgconfig This will make sure that cgconfig service will be started before docker. Other thing is the cgconfig service start. By default the service is not enabled on boot. I'm unsure what is the valid way to change this. One way is to add it in the %post section of the RPM. But this doesn't seem good to me. Other option is to check the status of cgconfig in the docker init.d file and launch it if it's stopped. And I think this would be a preferred solution for this. We can also add a warning that would say how to enable the service (chkconfig cgconfig on) when we detect that docker service is marked to start on boot and cgconfig is not. Any other ideas / comments?
Created attachment 830646 [details] Patch fot cgconfig boot I'm attaching a patch to fix the cgconfig service boot requirement. Please note that this patch should be applied against master AFTER applying patch from bug 1036027.
docker-io-0.7.0-10.el6 has been pushed to the Fedora EPEL 6 testing repository.
docker-io-0.7.0-12.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/docker-io-0.7.0-12.fc20
docker-io-0.7.0-12.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/docker-io-0.7.0-12.fc19
docker-io-0.7.0-12.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/docker-io-0.7.0-12.el6
tested with 0.7.0-10.fc20 and 0.7.0-12.both work fine
docker-io-0.7.0-14.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/docker-io-0.7.0-14.fc20
docker-io-0.7.0-14.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/docker-io-0.7.0-14.fc19
docker-io-0.7.0-14.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/docker-io-0.7.0-14.el6
docker-io-0.7.0-14.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
docker-io-0.7.0-14.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
docker-io-0.7.0-14.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.