Rancher service for 'active' containers

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

@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:

@alena,
that’s rocking good news :slight_smile:

br hw