Public Repository

Last pushed: 5 days ago
Short Description
Mesos-Slave in Docker
Full Description

Mesos-Slave in Docker

Mesosphere builds Apache Mesos into several Docker containers:

ReadMe and Dockerfiles: https://github.com/mesosphere/docker-containers/tree/master/mesos

Other Mesosphere Packages: https://mesosphere.com/downloads/

Docker Pull Command
Owner
mesosphere

Comments (27)
wolvesqun
2 months ago

I cant't run in centos 7,can you build a version for centos7.3

vvsh
5 months ago

@mesosphere, could you please build 1.2.0 version?

jackywu
a year ago

For ubuntu 15.10, docker version 1.11.2:

docker run -d --net=host --privileged \
  -e MESOS_PORT=5051 \
  -e MESOS_MASTER=zk://<zookeeper-host>:<zookeeper-port>/mesos \
  -e MESOS_SWITCH_USER=0 \
  -e MESOS_CONTAINERIZERS=docker,mesos \
  -e MESOS_LOG_DIR=/var/log/mesos \
  -e MESOS_WORK_DIR=/var/tmp/mesos \
  -v "$(pwd)/log/mesos:/var/log/mesos" \
  -v "$(pwd)/tmp/mesos:/var/tmp/mesos" \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /cgroup:/cgroup \
  -v /sys:/sys \
  -v /usr/bin/docker:/usr/local/bin/docker \
  -v /lib/x86_64-linux-gnu/libsystemd.so.0:/lib/x86_64-linux-gnu/libsystemd.so.0 \
  -v /lib/x86_64-linux-gnu/libselinux.so.1:/lib/x86_64-linux-gnu/libselinux.so.1 \
  -v /lib/x86_64-linux-gnu/libgcrypt.so.20:/lib/x86_64-linux-gnu/libgcrypt.so.20 \
  -v /lib/x86_64-linux-gnu/libgpg-error.so.0:/lib/x86_64-linux-gnu/libgpg-error.so.0 \
  -v /usr/lib/x86_64-linux-gnu/libltdl.so.7:/usr/lib/x86_64-linux-gnu/libltdl.so.7 \
  -v /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1:/lib/x86_64-linux-gnu/libdevmapper.so.1.02.1:ro \
  -v /lib/x86_64-linux-gnu/libapparmor.so.1:/usr/lib/x86_64-linux-gnu/libapparmor.so.1:ro \
  -v /lib/x86_64-linux-gnu/libseccomp.so.2:/usr/lib/x86_64-linux-gnu/libseccomp.so.2:ro \
  mesosphere/mesos-slave:0.28.1-2.0.20.ubuntu1404
anhcuong
a year ago

Anyone can help me with this issue:

https://github.com/mesosphere/marathon/issues/3869

I thought it was from Marathon, but now it is mesos slave problem when trying to pull docker image.

gmcoringa
a year ago

For CoreOS:

docker run --name mesos-slave \
    --net=host \
    --pid=host \
    --privileged \
    -e MESOS_MASTER=<MASTER> \
    -e MESOS_SWITCH_USER=0 \
    -e MESOS_CONTAINERIZERS=docker,mesos \
    -e MESOS_DOCKER_STOP_TIMEOUT=2mins \
    -e MESOS_EXECUTOR_REGISTRATION_TIMEOUT=5mins \
    -v /tmp/log/mesos:/var/log/mesos \
    -v /tmp/mesos:/tmp/mesos \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /sys:/sys \
    -v /usr/bin/docker:/usr/bin/docker \
    -v /lib64/libsystemd.so.0:/lib/libsystemd.so.0 \
    -v /lib64/libselinux.so.1:/lib/libselinux.so.1 \
    -v /lib64/libdevmapper.so.1.02:/lib/libdevmapper.so.1.02 \
    -v /lib64/libgcrypt.so.20:/lib/libgcrypt.so.20 \
    mesosphere/mesos-slave:0.28.0-2.0.16.ubuntu1404
neuw84
a year ago

Those running 15.10 will need to use docker run -i -t --entrypoint /bin/bash -v /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1:/lib/x86_64-linux-gnu/libdevmapper.so.1.02.1:ro -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/local/bin/docker -v /lib/x86_64-linux-gnu/libapparmor.so.1:/usr/lib/x86_64-linux-gnu/libapparmor.so.1:ro -v /lib/x86_64-linux-gnu/libseccomp.so.2:/usr/lib/x86_64-linux-gnu/libseccomp.so.2:ro mesos-slave:tag

isavcic
a year ago

Also, replace -v /usr/local/bin/docker:/usr/local/bin/docker with -v "$(which docker):/usr/local/bin/docker for Ubuntu hosts.

isavcic
a year ago

@devoxi @hplong @rdmitterer if you're using Ubuntu 14.04 and latest stable docker-engine from apt.dockerproject.org, two library bind mounts are missing from the mesos-slave launch snippet at Github:

-v /lib/x86_64-linux-gnu/libsystemd-journal.so.0:/lib/x86_64-linux-gnu/libsystemd-journal.so.0 \
-v /usr/lib/x86_64-linux-gnu/libapparmor.so.1:/usr/lib/x86_64-linux-gnu/libapparmor.so.1
phrozen
a year ago

@devoxi care you explain how? Running in to the same problems but all guides for "docker in docker" seems to point me into only running with --previleged and -v /var/run/docker.sock:/run/docker.sock

devoxi
a year ago

Removing -v /usr/bin/docker:/usr/bin/docker and installing docker inside the mesos slave container solved the "Failed to create a containerizer: Could not create DockerContainerizer: Failed to create docker: Failed to get docker version: Failed to execute 'docker -H unix:///var/run/docker.sock --version': exited with status 127" problem