Containerizers are used to run tasks in ‘containers’, which in turn are used to:
Mesos plays well with existing container technologies (e.g., docker) and also provides its own container technology. It also supports composing different container technologies (e.g., docker and mesos).
Mesos implements the following containerizers:
User can specify the types of containerizers to use via the agent flag --containerizers
.
This feature allows multiple container technologies to play together. It is enabled when you configure the --containerizers
agent flag with multiple comma seperated containerizer names (e.g., --containerizers=mesos,docker
). The order of the comma separated list is important as the first containerizer that supports the task’s container configuration will be used to launch the task.
Use cases:
Docker containerizer allows tasks to be run inside docker container. This containerizer is enabled when you configure the agent flag as --containerizers=docker
.
Use cases:
For more details, see Docker Containerizer.
This containerizer allows tasks to be run with an array of pluggable isolators provided by Mesos. This is the native Mesos containerizer solution and is enabled when you configure the agent flag as --containerizers=mesos
.
Use cases:
For more details, see Mesos Containerizer.