mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
fix(docker): Show stopped container on dashboard [EE-4327] (#7833)
* EE-4327 fix(docker): Show stopped container on dashboard * Update ContainerStatus.tsx remove comment * EE-4327 fix(docker): show stopped container on dashboard
This commit is contained in:
parent
f3e2ccd487
commit
0219d41ba7
2 changed files with 5 additions and 2 deletions
|
@ -60,7 +60,10 @@ function runningContainersFilter(containers: DockerContainer[]) {
|
|||
.length;
|
||||
}
|
||||
function stoppedContainersFilter(containers: DockerContainer[]) {
|
||||
return containers.filter((container) => container.Status === 'exited').length;
|
||||
return containers.filter(
|
||||
(container) =>
|
||||
container.Status === 'exited' || container.Status === 'stopped'
|
||||
).length;
|
||||
}
|
||||
function healthyContainersFilter(containers: DockerContainer[]) {
|
||||
return containers.filter((container) => container.Status === 'healthy')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue