fix: df and more debug

This commit is contained in:
Andras Bacsai
2022-07-25 11:25:36 +00:00
parent 2e7c96b2eb
commit 5f3aae066a
3 changed files with 4 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ import { getEngine } from '../lib/docker';
try {
let stdout = null
if (!isDev) {
const output = await executeDockerCmd({ dockerId: destination.id, command: `docker exec coolify sh -c 'df -kPT /'` })
const output = await executeDockerCmd({ dockerId: destination.id, command: `CONTAINER=$(docker ps -lq | head -1) && docker exec $CONTAINER sh -c 'df -kPT /'` })
stdout = output.stdout;
} else {
const output = await asyncExecShell(