fix: show restarting apps
This commit is contained in:
parent
aa6c56b63d
commit
25528913f1
@ -21,10 +21,9 @@ export async function checkContainer({ dockerId, container, remove = false }: {
|
||||
command:
|
||||
`docker inspect --format '{{json .State}}' ${container}`
|
||||
});
|
||||
|
||||
const parsedStdout = JSON.parse(stdout);
|
||||
const status = parsedStdout.Status;
|
||||
const isRunning = status === 'running';
|
||||
const isRunning = status === 'running' || status === 'restarting';
|
||||
if (status === 'created') {
|
||||
await executeDockerCmd({
|
||||
dockerId,
|
||||
|
Loading…
x
Reference in New Issue
Block a user