Fix cleanup process of old coolify images
This commit is contained in:
parent
53e1f22eb1
commit
ddc4d36688
@ -9,7 +9,7 @@ export default async function () {
|
||||
// Cleanup old coolify images
|
||||
try {
|
||||
const { stdout: images } = await asyncExecShell(
|
||||
`DOCKER_HOST=${host} docker images coollabsio/coolify --filter before="coollabsio/coolify:latest" -q`
|
||||
`DOCKER_HOST=${host} docker images coollabsio/coolify --filter before="coollabsio/coolify:latest" -q | xargs `
|
||||
);
|
||||
if (images) {
|
||||
await asyncExecShell(`DOCKER_HOST=${host} docker rmi ${images}`);
|
||||
|
Loading…
Reference in New Issue
Block a user