# Mesos / Marathon / Container network

**URL:** <https://forums.suse.com/t/mesos-marathon-container-network/4936>\
**Category:** Rancher 1.x\
**Created:** [December 16, 2016, 10:47am UTC](https://forums.suse.com/t/mesos-marathon-container-network/4936 "2016-12-16T10:47:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![looztra](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/looztra/32/1027_2.png) [@looztra](https://forums.suse.com/u/looztra)\
**Post date:** [December 16, 2016, 10:47am UTC](https://forums.suse.com/t/mesos-marathon-container-network/4936/1 "2016-12-16T10:47:33Z")

</div>

Just tried the Mesos integration, and I’m a little disappointed.

I thought that the Mesos integration would gain the benefits of the Rancher networking, and it seems like it’s not the case.

I created a Mesos env  
I installed the Marathon framework  
I cannot use rancher managed network when I create a new Marathon task using a docker container

Would be nice if it could be possible 🙂

---

<div class="post-metadata">

**Author:** ![leodotcloud](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/leodotcloud/32/3103_2.png) [@leodotcloud](https://forums.suse.com/u/leodotcloud)\
**Post date:** [December 19, 2016, 5:49pm UTC](https://forums.suse.com/t/mesos-marathon-container-network/4936/2 "2016-12-19T17:49:19Z")

</div>

@looztra

The Marathan framework launches the containers directly on the hosts using docker by passing Rancher completely. So the networking option for these containers is NOT ‘managed’.

But we have a solution exactly for this. You have to add a label `io.rancher.container.network:true` while launching these containers and Rancher would know that you are asking for ‘Managed’ networking.

Please do give it a shot and let us know how it goes.

---

<div class="post-metadata">

**Author:** ![looztra](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/looztra/32/1027_2.png) [@looztra](https://forums.suse.com/u/looztra)\
**Post date:** [December 19, 2016, 9:12pm UTC](https://forums.suse.com/t/mesos-marathon-container-network/4936/3 "2016-12-19T21:12:13Z")

</div>

thanks for the tip, I will try that.

Now that both Mesos/Marathon and Rancher use CNI network plugins, it would be nice if Rancher could support the “USER” network mode of Mesos/Marathon 🙂
