We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8c4c90 commit 8b6411cCopy full SHA for 8b6411c
1 file changed
packages/cluster/src/commands/list.js
@@ -10,6 +10,7 @@ const getStatus = async cluster =>
10
cmd: 'docker',
11
args: [
12
'ps',
13
+ '-a', // Include stopped containers
14
'--filter',
15
`name=${makeComposeProject(cluster.name)}_core`,
16
'--format',
@@ -26,8 +27,10 @@ const formatStatus = status => {
26
27
return chalk.grey('Down')
28
} else if (/\(Paused\)$/.test(status)) {
29
return chalk.cyan(status)
- } else if (/^Up \d+/.test(status)) {
30
+ } else if (/^Up/.test(status)) {
31
return chalk.green(status)
32
+ } else if (/^Exited/.test(status)) {
33
+ return chalk.red(status)
34
} else {
35
return chalk.yellow(status)
36
}
0 commit comments