# Rancher service for 'active' containers

**URL:** <https://forums.suse.com/t/rancher-service-for-active-containers/2228>\
**Category:** Rancher 1.x\
**Created:** [March 30, 2016, 1:15pm UTC](https://forums.suse.com/t/rancher-service-for-active-containers/2228 "2016-03-30T13:15:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hwaastad](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/hwaastad/32/225_2.png) [@hwaastad](https://forums.suse.com/u/hwaastad)\
**Post date:** [March 30, 2016, 1:15pm UTC](https://forums.suse.com/t/rancher-service-for-active-containers/2228/1 "2016-03-30T13:15:38Z")

</div>

Hi,  
maybe it’s discussed before but I need to get a list over active containers after an upgrade.

So, in my entrypoint I do:  
`curl --retry 3 --fail --silent $RANCHER_META/services/${RANCHER_SERVICE}/containers`

But this will list all containers twice after an upgrade.

I can always hashmap by containername but I still want to see if you guys think it would be a nice feature.

/hw

---

<div class="post-metadata">

**Author:** ![alena](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/alena/32/50_2.png) [@alena](https://forums.suse.com/u/alena)\
**Post date:** [March 30, 2016, 4:57pm UTC](https://forums.suse.com/t/rancher-service-for-active-containers/2228/2 "2016-03-30T16:57:18Z")

</div>

@hwaastad we are planning to include container state to metadata, so after the upgrade is finished, you will be able to filter out “active”(=“running”) containers:

> <https://github.com/rancher/rancher/issues/4042>

---

<div class="post-metadata">

**Author:** ![hwaastad](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/hwaastad/32/225_2.png) [@hwaastad](https://forums.suse.com/u/hwaastad)\
**Post date:** [March 30, 2016, 5:00pm UTC](https://forums.suse.com/t/rancher-service-for-active-containers/2228/3 "2016-03-30T17:00:02Z")

</div>

@alena,  
that’s rocking good news 🙂

br hw

---

<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:** [March 30, 2016, 5:17pm UTC](https://forums.suse.com/t/rancher-service-for-active-containers/2228/4 "2016-03-30T17:17:38Z")

</div>

Closed on March 30, 2016, 5:17pm UTC


