# Container/pod persistence when rebooting host

**URL:** <https://forums.suse.com/t/container-pod-persistence-when-rebooting-host/10900>\
**Category:** SUSE Rancher Prime\
**Created:** [June 25, 2018, 10:49pm UTC](https://forums.suse.com/t/container-pod-persistence-when-rebooting-host/10900 "2018-06-25T22:49:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Craig\_Goodenough](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/craig_goodenough/32/911_2.png) [@Craig\_Goodenough](https://forums.suse.com/u/Craig_Goodenough)\
**Post date:** [June 25, 2018, 10:49pm UTC](https://forums.suse.com/t/container-pod-persistence-when-rebooting-host/10900/1 "2018-06-25T22:49:55Z")

</div>

Hi All,

I am moving into Rancher 2.0 from 1.X ( I have been using 1.X since just before its GA release).

My situation is after a reboot of the host/node in a cluster. (The host being a RancherOS v1.4.0 host) the containers/pods seem to get re-created instead of just start them up again.  
When I do a docker ps -a I can see the old containers from before the reboot including the Kubernetes containers but new ones have been created instead.

This is the expected outcome now with Rancher 2.X ? I may be missing something as I am new to Kubernetes as I have been using Cattle with 1.X

With Rancher 1.X all the containers would remain and in turn the volumes attached to the containers holding their data/config.

Any insight or help would be greatly appreciated.

Thanks in advance,  
Craig

---

<div class="post-metadata">

**Author:** ![Greg\_Keys](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@Greg\_Keys](https://forums.suse.com/u/Greg_Keys)\
**Post date:** [July 1, 2018, 6:54pm UTC](https://forums.suse.com/t/container-pod-persistence-when-rebooting-host/10900/2 "2018-07-01T18:54:02Z")

</div>

I’m new to kubernetes as well but i have noticed that persistent volume claims seem too persist unless deleted.

i can delete the containers and reboot the instances and if the volume from the claim still exists it will reattach to the containers when they boot up.

look at the elastic search chart in the k8s incubator and the rabbitmq-ha as examples

---

<div class="post-metadata">

**Author:** ![Craig\_Goodenough](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/craig_goodenough/32/911_2.png) [@Craig\_Goodenough](https://forums.suse.com/u/Craig_Goodenough)\
**Post date:** [July 6, 2018, 4:03am UTC](https://forums.suse.com/t/container-pod-persistence-when-rebooting-host/10900/3 "2018-07-06T04:03:28Z")

</div>

Thanks @Greg_Keys. After reading more into it. It seems I should be using a statefulset. I’ll give it a try.
