# Howto Isolate Stack

**URL:** <https://forums.suse.com/t/howto-isolate-stack/4862>\
**Category:** General\
**Created:** [December 9, 2016, 10:40am UTC](https://forums.suse.com/t/howto-isolate-stack/4862 "2016-12-09T10:40:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jodumont](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jodumont/32/1631_2.png) [@jodumont](https://forums.suse.com/u/jodumont)\
**Post date:** [December 9, 2016, 10:40am UTC](https://forums.suse.com/t/howto-isolate-stack/4862/1 "2016-12-09T10:40:01Z")

</div>

I’m using Cattle and having 3hosts.

I thought Stack will be insolate from each others

But from on the same host  
I’m able to ping and connect from one stack to another.

It is any way to stop that ?

Remark #1: on any stack no port are binded to the host.

Any kind of potential solution will be appreciate.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [December 9, 2016, 7:05pm UTC](https://forums.suse.com/t/howto-isolate-stack/4862/2 "2016-12-09T19:05:50Z")

</div>

Environments are isolated from each other but not stacks. All stacks in an environment have access to each other.

---

<div class="post-metadata">

**Author:** ![jodumont](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jodumont/32/1631_2.png) [@jodumont](https://forums.suse.com/u/jodumont)\
**Post date:** [December 10, 2016, 1:59am UTC](https://forums.suse.com/t/howto-isolate-stack/4862/3 "2016-12-10T01:59:32Z")

</div>

Thanks Denise for your answer

Anyway I found a way to isolate my container into the stack 😉  
such as an example  
**app** running into managed network  
while **db** running into host network with a scheduling of :

- the host _must_ have a _service with the name_ value _${stack}/%{service\_name}_

so in that case only this app could communicate to this database 😉
