You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Mickael van der Beek (JIRA)" <ji...@apache.org> on 2015/03/17 16:57:39 UTC

[jira] [Created] (MESOS-2509) Docker as containerizer option value fails

Mickael van der Beek created MESOS-2509:
-------------------------------------------

             Summary: Docker as containerizer option value fails
                 Key: MESOS-2509
                 URL: https://issues.apache.org/jira/browse/MESOS-2509
             Project: Mesos
          Issue Type: Bug
          Components: containerization, docker, slave
    Affects Versions: 0.21.1
         Environment: Operating system: Ubuntu 14.04.1 LTS
Kernel: GNU/Linux 3.13.0-44-generic x86_64
Hardware: AWS's EC2 t2.small instances

            Reporter: Mickael van der Beek
            Priority: Minor


When running the following command:

{code:shell}
sudo /usr/sbin/mesos-slave --master=zk://MASTER_IP:2181/mesos --log_dir=/var/log/mesos --hostname=SLAVE_IP --ip=SLAVE_IP
{code}

everything works and I have no issues but when specifying "docker" as containerizer, like this:

{code:shell}
sudo /usr/sbin/mesos-slave --master=zk://MASTER_IP:2181/mesos --log_dir=/var/log/mesos --hostname=SLAVE_IP --ip=SLAVE_IP --containerizers=docker
{code}

I get the following error:

{code:text}
I0317 15:35:27.556180  3916 logging.cpp:172] INFO level logging started!
I0317 15:35:27.556443  3916 main.cpp:142] Build: 2015-01-09 02:25:56 by root
I0317 15:35:27.556606  3916 main.cpp:144] Version: 0.21.1
I0317 15:35:27.556675  3916 main.cpp:147] Git tag: 0.21.1
I0317 15:35:27.556732  3916 main.cpp:151] Git SHA: 2ae1ba91e64f92ec71d327e10e6ba9e8ad5477e8
Failed to create a containerizer: Could not create DockerContainerizer: Failed to find a mounted cgroups hierarchy for the 'cpu' subsystem; you probably need to mount cgroups manually!
{code}

The command:

{code:shell}
cat /proc/cgroups
{code}

returns:

{code:text}
#subsys_name	hierarchy	num_cgroups	enabled
cpuset	0	1	1
cpu	0	1	1
cpuacct	0	1	1
memory	0	1	1
devices	0	1	1
freezer	0	1	1
blkio	0	1	1
perf_event	0	1	1
hugetlb	0	1	1
{code}

and the command:

{code:shell}
cat /proc/mounts
{code}

returns:

{code:text}
rootfs / rootfs rw 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1019280k,nr_inodes=254820,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=204852k,mode=755 0 0
/dev/disk/by-uuid/efbeda5e-eb44-475f-83dc-eb9b42239a4a / ext4 rw,relatime,discard,data=ordered 0 0
none /sys/fs/cgroup tmpfs rw,relatime,size=4k,mode=755 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
none /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
none /run/shm tmpfs rw,nosuid,nodev,relatime 0 0
none /run/user tmpfs rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755 0 0
none /sys/fs/pstore pstore rw,relatime 0 0
systemd /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,name=systemd 0 0
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)