mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-06 20:15:27 +00:00
Fix cleanup process of old coolify images
This commit is contained in:
1 parent
53e1f22eb1
commit
ddc4d36688
1 file changed
+1
-1
@@ -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}`);
|
||||
|
||||
Reference in new issue
Block a user