This adds basic support for launching broker in docker containers.
Two options are supported, docker images via the Docker Containerizer, and a docker image as the rootfs via the Mesos Containerizer + docker image provider.
Configuration is per-broker, and 4 new flags to broker add/update have been introduced:
Flag
Description
--container-type
This can be either mesos or docker, and sets which containerizer to launch the broker with.
--container-image
The docker image to use as the root filesystem
--container-mounts
A list of mount points to mount into the container
--container-mounts should be in the form of host_path:container_path:mode[,...] where mode is either rw or ro.
Note: The container must be able to support loading the mesos executor library, which mean libmesos (and its dependencies) must be somewhere in the library search path, or mounted into the container.
This adds basic support for launching broker in docker containers. Two options are supported, docker images via the Docker Containerizer, and a docker image as the rootfs via the Mesos Containerizer + docker image provider.
Configuration is per-broker, and 4 new flags to broker add/update have been introduced:
--container-type
mesos
ordocker
, and sets which containerizer to launch the broker with.--container-image
--container-mounts
--container-mounts
should be in the form ofhost_path:container_path:mode[,...]
wheremode
is eitherrw
orro
.Note: The container must be able to support loading the mesos executor library, which mean libmesos (and its dependencies) must be somewhere in the library search path, or mounted into the container.
Tracking ticket: #270