# Rancher environment share host

**URL:** <https://forums.suse.com/t/rancher-environment-share-host/6749>\
**Category:** Rancher 1.x\
**Created:** [June 29, 2017, 9:37am UTC](https://forums.suse.com/t/rancher-environment-share-host/6749 "2017-06-29T09:37:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Hugo](https://forums.suse.com/u/Hugo)\
**Post date:** [June 29, 2017, 9:37am UTC](https://forums.suse.com/t/rancher-environment-share-host/6749/1 "2017-06-29T09:37:10Z")

</div>

Hello,

I just see that if I create a new environment my hosts previously added doesn’t show up in this new env.  
I have two question about this :

- can I share a host between several env ? or each env need its own host ?
- can I move a host from one env to another ?

---

<div class="post-metadata">

**Author:** ![tfiduccia](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tfiduccia/32/2005_2.png) [@tfiduccia](https://forums.suse.com/u/tfiduccia)\
**Post date:** [June 29, 2017, 9:28pm UTC](https://forums.suse.com/t/rancher-environment-share-host/6749/2 "2017-06-29T21:28:09Z")

</div>

1. No you cannot share hosts across several environments. Each environment needs it own hosts.
2. Currently there is no way to move a host from one environment to another.

---

<div class="post-metadata">

**Author:** ![Hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Hugo](https://forums.suse.com/u/Hugo)\
**Post date:** [June 30, 2017, 9:20am UTC](https://forums.suse.com/t/rancher-environment-share-host/6749/3 "2017-06-30T09:20:04Z")

</div>

Ok thank you.

Sadly since I removed my two nodes from default env and trying to add it to the new env, rancher agent isn’t working anymore and failing with a weird error (docker logs) :

> Found container ID: 37d3fba500108e4539d9e18afd68202edd1ecf743e66dd14a1ba797db25dea23  
> Checking root: /host/run/runc  
> Checking file: 22dfb3a3cbc5dd5b461fd4821942b30fc3ad1e1442413c2a450411780b78181e  
> Checking file: 37d3fba500108e4539d9e18afd68202edd1ecf743e66dd14a1ba797db25dea23  
> Found state.json: 37d3fba500108e4539d9e18afd68202edd1ecf743e66dd14a1ba797db25dea23  
> time=“2017-06-30T09:18:57Z” level=fatal msg=“json: cannot unmarshal object into Go value of type string”

Any idea ?

---

<div class="post-metadata">

**Author:** ![Hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Hugo](https://forums.suse.com/u/Hugo)\
**Post date:** [June 30, 2017, 9:46am UTC](https://forums.suse.com/t/rancher-environment-share-host/6749/4 "2017-06-30T09:46:09Z")

</div>

> [@Hugo](#):
>
> 22dfb3a3cbc5dd5b461fd4821942b30fc3ad1e1442413c2a450411780b78181e

Ok I found the source of the error. My box was upgraded to docker 17.06.0~ce-0~debian which is not supported.  
downgrading to 17.03.2~ce-0~debian-jessie seems working.
