Merge branch 'next' into auto-cleanup-improvements

This commit is contained in:
Andras Bacsai
2024-08-26 11:13:40 +02:00
committed by GitHub
116 changed files with 3666 additions and 1157 deletions

View File

@@ -9,8 +9,9 @@ class CleanupDocker
{
use AsAction;
public function handle(Server $server, bool $force = true)
public function handle(Server $server)
{
$commands = $this->getCommands($force);
foreach ($commands as $command) {
@@ -28,7 +29,7 @@ class CleanupDocker
if ($force) {
return array_merge([
'docker container rm $(docker container ls -aq --filter status=exited --filter "label=coolify.managed=true")',
'docker container prune -f --filter "label=coolify.managed=true"',
'docker image prune -af',
'docker builder prune -af',
], $commonCommands);