Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Apr 26, 2014 1:46 pm 
Offline

Joined: Sat Apr 26, 2014 1:18 pm
Posts: 1
I saw the post from January (https://blog.linode.com/2014/01/03/docker-on-linode/) where they announced support "out of the box" for Docker.

Today, I created a new Centos 6.5 linode and installed Docker (yum install docker-io).

However, when I start Docker, I get:

[root@linode docker]# service docker start
Starting cgconfig service: Error: cannot mount memory to /cgroup/memory: No such file or directory
/sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup mounting failed
Failed to parse /etc/cgconfig.conf [FAILED]
Starting docker: [ OK ]

Building from Dockerfile gives:

Uploading context 2.56 kB
Uploading context
Step 0 : from fedora
---> b7de3133ff98
Step 1 : run mkdir /usr/local/docker
---> Running in b2eb62150f97
lxc-start: cgroup is not mounted
lxc-start: Error setting devices.deny to a for lxc/b2eb62150f974c171b7f86e9d6f8576f6bad6cc83c447d8a4e1c448ddf5da773

lxc-start: failed to setup the cgroups for 'b2eb62150f974c171b7f86e9d6f8576f6bad6cc83c447d8a4e1c448ddf5da773'
lxc-start: failed to spawn 'b2eb62150f974c171b7f86e9d6f8576f6bad6cc83c447d8a4e1c448ddf5da773'

2014/04/26 17:45:19 The command [/bin/sh -c mkdir /usr/local/docker] returned a non-zero code: 255

Running lxc-checkconfig gives:
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled
Multiple /dev/pts instances: enabled

--- Control groups ---
Cgroup: enabled
Cgroup namespace: required
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: missing
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
File capabilities: enabled

My kernel: 3.13.7-x86_64-linode38

I'd rather not have to roll my own kernel, especially since its supposed to work.

Has anyone else had this problem?


Top
   
PostPosted: Sat Apr 26, 2014 5:45 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
For what it's worth, it works out-of-the-box with Ubuntu 14.04 with the same stock Linode kernel. (Indeed, "apt-get install docker.io" and it's there, no third-party repositories required.)

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Wed Jul 02, 2014 7:54 pm 
Offline
Newbie

Joined: Wed Jul 02, 2014 7:53 pm
Posts: 3
I am experiencing this issue today on a fresh install with the latest image! Exact same error.


Top
   
PostPosted: Wed Jul 02, 2014 7:59 pm 
Offline
Senior Member

Joined: Mon Jul 05, 2010 5:13 pm
Posts: 392
drewwestphal wrote:
I am experiencing this issue today on a fresh install with the latest image! Exact same error.


What version of Docker are you running? Given that Docker hasn't even used lxc for several updates, if you're still seeing this error you're running a very out-of-date version.

- Les


Top
   
PostPosted: Tue Jul 08, 2014 4:48 am 
Offline
Newbie

Joined: Tue Jul 08, 2014 4:46 am
Posts: 4
Confirmed, same issues like @warriorwiki.


Top
   
PostPosted: Tue Jul 08, 2014 12:31 pm 
Offline
Newbie

Joined: Wed Jul 02, 2014 7:53 pm
Posts: 3
I've installed 1.0.0-3.el6 from EPEL per the directions here. This is on a fresh install with a linode centos image from last week. I didn't modify anything relating to cgroups, just changed some ssh configs after creating it.
https://library.linode.com/containers/docker
https://blog.linode.com/2014/01/03/docker-on-linode/


cgconfig doesn't get parsed correctly....

Code:
sudo service docker start
Starting cgconfig service: Error: cannot mount memory to /cgroup/memory: No such file or directory
/sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup mounting failed
Failed to parse /etc/cgconfig.conf                         [FAILED]
Starting docker:                                      [  OK  ]


docker does start, but if i try to run anything

Code:
sudo docker run -i -t fedora /bin/bash
Unable to find image 'fedora' locally
Pulling repository fedora
3f2fed40e4b0: Download complete
511136ea3c5a: Download complete
fd241224e9cf: Download complete
2014/07/08 12:23:31 Error: Cannot start container 9c341794c33de75809dc21137b71823e3cd30ac51aff2dde6684ed2873549881: mountpoint not found



so, yes, i agree that the issue is not with docker, per se, but with cgconfig on the default centos install. i know this is my instance to take care of... but the linode blog post (https://blog.linode.com/2014/01/03/docker-on-linode/) said that it supported docker "out of the box" which is a big plus for me. it appears that out of the box, cgconfig doesn't work and so docker cannot either.


Top
   
PostPosted: Tue Jul 08, 2014 12:39 pm 
Offline
Junior Member
User avatar

Joined: Fri May 04, 2012 8:57 pm
Posts: 49
note that cgroup memory management is strictly optional for docker. In fact, every other distro handles this correctly in their initscripts/packaging for docker.

_________________
me | voltaireMC


Top
   
PostPosted: Tue Jul 08, 2014 2:25 pm 
Offline
Newbie

Joined: Wed Jul 02, 2014 7:53 pm
Posts: 3
@kbar has it right... by disabling cgroup memory management cgconfig starts correctly and docker runs an example container

you can do this by deleting the memory line from /etc/cgconfig.conf


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group