You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Timothy Chen (JIRA)" <ji...@apache.org> on 2014/11/01 08:23:33 UTC

[jira] [Commented] (MESOS-1816) lxc execution driver support for docker containerizer

    [ https://issues.apache.org/jira/browse/MESOS-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14193002#comment-14193002 ] 

Timothy Chen commented on MESOS-1816:
-------------------------------------

commit 3f7a9cd909a86e40e2484ab3e8ba0d22a49a39c6
Author: Timothy Chen <tn...@gmail.com>
Date:   Mon Sep 22 15:04:00 2014 -0700

    Support arbitrary parameters in docker containerizer


> lxc execution driver support for docker containerizer
> -----------------------------------------------------
>
>                 Key: MESOS-1816
>                 URL: https://issues.apache.org/jira/browse/MESOS-1816
>             Project: Mesos
>          Issue Type: Improvement
>          Components: containerization
>    Affects Versions: 0.20.1
>            Reporter: Eugen Feller
>            Assignee: Timothy Chen
>              Labels: docker
>         Attachments: docker_patch.cpp, test_framework_patch.cpp
>
>
> Hi all,
> One way to get networking up and running in Docker is to use the bridge mode. The bridge mode results in Docker automatically assigning IPs to the containers from the IP range specified on the docker0 bridge.
> In our setup we need to manage IPs using our own DHCP server. Unfortunately this is not supported by Docker's libcontainer execution driver. Instead, the lxc execution driver (http://blog.docker.com/2014/03/docker-0-9-introducing-execution-drivers-and-libcontainer/) can be used. In order to use the lxc execution driver, Docker daemon needs to be started with the "-e lxc" flag. Once started, Docker own networking can be disabled and lxc options can be passed to the docker run command. For example:
> $ docker run -n=false --lxc-conf="lxc.network.type = veth" --lxc-conf="lxc.network.link = br0" --lxc-conf="lxc.network.name = eth0" -lxc-conf="lxc.network.flags = up" ...
> This will force Docker to use my own bridge br0. Moreover, IP can be assigned to the eth0 interface by executing the "dhclient eth0" command inside the started container.
> In the previous integration of Docker in Mesos (using Deimos), I have passed the aforementioned options using the "options" flag in Marathon. However, with the new changes this is no longer possible. It would be great to support the lxc execution driver in the current Docker integration.
> Thanks.
> Best regards,
> Eugen



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