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
alena
March 30, 2016, 4:57pm
2
@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:
Rancher Metadata returns services and containers that are not running (e.g. inactive, stopped, upgrading...) in its responses. Currently there is no...
kind/enhancement
status/resolved
status/to-test
@alena ,
that’s rocking good news
br hw