How to register a mesos-slave with docker containerizer option?

I have a mesos master running at IP

192.168.99.100:5050

I would like to register my mesos-slave.

  • Can't get network statistics, Docker Remote API v1.22
  • Fig up error exec: “bundle”: executable file not found in $PATH
  • Docker Bash Has No Colour
  • docker-machine amazon-ec2 fail during init
  • Execute docker host command inside jenkins docker container
  • Dokku recognizes my Node.js app as Go app on deploy
  • However, from my mesos-slave machine when I run following command

    ./mesos-slave.sh --master=192.168.99.100:5050
    

    I get error

        I1017 21:47:20.751700   594 main.cpp:190] Build: 2015-10-16 08:02:34 by
        I1017 21:47:20.756986   594 main.cpp:192] Version: 0.26.0
        I1017 21:47:20.757683   594 main.cpp:199] Git SHA: 6d90b3b926f3eabbec4f9e2ff627a3eeae368d84
        I1017 21:47:20.878522   594 containerizer.cpp:143] Using isolation: posix/cpu,posix/mem,filesystem/posix
        Failed to create a containerizer: Could not create MesosContainerizer: Failed to create launcher: Failed to create Linux launcher: Failed to create root cgroup /sys/fs/cgroup/freezer/mesos: Failed to create directory '/sys/fs/cgroup/freezer/mesos': Read-only file system**strong text**
    
    1. Could I start my mesos-slave with docker as the containerizer?
    2. How could I do it?

  • how can I find docker image with specific tag in docker registry in docker command line?
  • Install vim in node Docker image
  • Change hostname after running a container
  • Docker-compose mounts are going to work with TCP host?
  • How to keep a service running on a Docker container
  • Build Eclipse CDT project in docker
  • One Solution collect form web for “How to register a mesos-slave with docker containerizer option?”

    NOTE – Make sure docker is installed on the mesos-slave

    1. Yes you can start your mesos-slave with docker as the containerizer.
    2. Following is how to do it

    ./mesos-slave.sh --master=192.168.99.100:5050 --containerizers=docker

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.