Fix cleanup process of old coolify images

This commit is contained in:
Andras Bacsai 2022-03-02 20:32:29 +01:00
parent 53e1f22eb1
commit ddc4d36688

View File

@ -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}`);