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
|
// Cleanup old coolify images
|
||||||
try {
|
try {
|
||||||
const { stdout: images } = await asyncExecShell(
|
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) {
|
if (images) {
|
||||||
await asyncExecShell(`DOCKER_HOST=${host} docker rmi ${images}`);
|
await asyncExecShell(`DOCKER_HOST=${host} docker rmi ${images}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user