Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

docs(ui): clarify application image retention cleanup options

Andras Bacsaiaed5ec3e2f6f
diff --git a/resources/views/livewire/server/docker-cleanup.blade.php b/resources/views/livewire/server/docker-cleanup.blade.php
index b09c67909c..d50ead8195 100644
--- a/resources/views/livewire/server/docker-cleanup.blade.php
+++ b/resources/views/livewire/server/docker-cleanup.blade.php
@@ -99,7 +99,7 @@
['value' => true, 'label' => 'Delete unused networks'],
]" />
<x-forms.listbox id="disableApplicationImageRetention" label="Application images"
- helper="Keeping retained images allows application rollbacks."
+ helper="Choose Keep retained images to follow each application’s Images to keep setting under Rollback. Delete all old images ignores that setting and keeps only the running image."
onChange="instantSave" :options="[
['value' => false, 'label' => 'Keep retained images'],
['value' => true, 'label' => 'Delete all old images'],
diff --git a/tests/Feature/DockerCleanupExecutionStyleTest.php b/tests/Feature/DockerCleanupExecutionStyleTest.php
index bad31d2d13..e220c8bc37 100644
--- a/tests/Feature/DockerCleanupExecutionStyleTest.php
+++ b/tests/Feature/DockerCleanupExecutionStyleTest.php
@@ -17,3 +17,11 @@ test('docker cleanup executions show a loading state while opening an execution'
->toContain('wire:loading.remove')
->toContain('<x-loading wire:loading');
});
+
+test('docker cleanup explains application image retention options', function () {
+ $view = file_get_contents(resource_path('views/livewire/server/docker-cleanup.blade.php'));
+
+ expect($view)
+ ->toContain('Choose Keep retained images to follow each application’s Images to keep setting under Rollback.')
+ ->toContain('Delete all old images ignores that setting and keeps only the running image.');
+});