Skip to content

Commit 696acb7

Browse files
committed
Improve helper text for all cleanup settings
1 parent ff5e445 commit 696acb7

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

resources/views/livewire/server/form.blade.php

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,15 @@ class="px-4 py-2 cursor-pointer hover:bg-gray-100 dark:hover:bg-coolgray-300 tex
188188
<div class="flex flex-wrap items-center gap-4">
189189
<div class="w-64">
190190
<x-forms.checkbox
191-
helper="Enable force Docker Cleanup. This will cleanup build caches / unused images / etc."
191+
helper="Enabling force Docker Cleanup will perform the following actions:
192+
<ul class='list-disc pl-4 mt-2'>
193+
<li>Removes stopped containers manged by Coolify (as containers are none persistent, no data will be lost).</li>
194+
<li>Deletes unused images.</li>
195+
<li>Clears build cache.</li>
196+
<li>Removes old versions of the Coolify helper image.</li>
197+
<li>Optionally delete unused volumes (if enabled in advanced options).</li>
198+
<li>Optionally remove unused networks (if enabled in advanced options).</li>
199+
</ul>"
192200
instantSave id="server.settings.force_docker_cleanup" label="Force Docker Cleanup" />
193201
</div>
194202
<x-forms.button wire:click="manualCleanup">
@@ -212,11 +220,23 @@ class="px-4 py-2 cursor-pointer hover:bg-gray-100 dark:hover:bg-coolgray-300 tex
212220
</svg>
213221
</button>
214222
<div x-show="open" class="mt-2 space-y-2">
215-
<p class="text-sm text-gray-600 dark:text-gray-400 mb-2"><strong>Only enable if you know what you are doing! As data cold be lost and functional issues might occur.</strong></p>
223+
<p class="text-sm text-gray-600 dark:text-gray-400 mb-2"><strong>Warning: Enable these options only if you fully understand their implications and consequences!</strong><br>Improper use will result in data loss and could cause functional issues.</p>
216224
<x-forms.checkbox instantSave id="server.settings.delete_unused_volumes" label="Delete Unused Volumes"
217-
helper="This will remove all unused Docker volumes during cleanup. <br>Volumes are not removed by default to prevent data loss as if you have stopped a container that has a volume mounted your data would be lost." />
225+
helper="This option will remove all unused Docker volumes during cleanup.<br><br><strong>Warning: Data form stopped containers will be lost!</strong><br><br>Consequences include:<br>
226+
<ul class='list-disc pl-4 mt-2'>
227+
<li>Volumes not attached to running containers will be deleted and data will be permanently lost (stopped containers are affected).</li>
228+
<li>Data from stopped containers volumes will be permanently lost.</li>
229+
<li>No way to recover deleted volume data.</li>
230+
</ul>"
231+
/>
218232
<x-forms.checkbox instantSave id="server.settings.delete_unused_networks" label="Delete Unused Networks"
219-
helper="This will remove all unused Docker networks during cleanup. <br>Networks are not removed by default to prevent functional issues as if you have stopped a container that has a network attached to it the network will not be removed and other containers might not be able to connect to it anymore." />
233+
helper="This option will remove all unused Docker networks during cleanup.<br><br><strong>Warning: Functionality may be lost and containers may not be able to communicate with each other!</strong><br><br>Consequences include:<br>
234+
<ul class='list-disc pl-4 mt-2'>
235+
<li>Networks not attached to running containers will be permanently deleted (stopped containers are affected).</li>
236+
<li>Custom networks for stopped containers will be permanently deleted.</li>
237+
<li>Functionality may be lost and containers may not be able to communicate with each other.</li>
238+
</ul>"
239+
/>
220240
</div>
221241
</div>
222242
</div>

0 commit comments

Comments
 (0)