Fix cleanup process of old coolify images
This commit is contained in:
parent
53e1f22eb1
commit
ddc4d36688
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue