From 645a81b2cee7f9a7a5f3e376deb71c2ec7e77cd8 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Sun, 5 Apr 2026 17:16:51 -0600 Subject: [PATCH 1/2] feat: add tooltip to Daily Docker Cleanup toggle Add an informative tooltip explaining the cleanup behavior and linking to Schedule Jobs docs for custom cleanup strategies. Closes #3973 --- .../servers/actions/toggle-docker-cleanup.tsx | 41 ++++++++++++++++++- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/components/dashboard/settings/servers/actions/toggle-docker-cleanup.tsx b/apps/dokploy/components/dashboard/settings/servers/actions/toggle-docker-cleanup.tsx index 97cf3f6be..42968ded3 100644 --- a/apps/dokploy/components/dashboard/settings/servers/actions/toggle-docker-cleanup.tsx +++ b/apps/dokploy/components/dashboard/settings/servers/actions/toggle-docker-cleanup.tsx @@ -1,7 +1,14 @@ -import { toast } from "sonner"; import { Label } from "@/components/ui/label"; import { Switch } from "@/components/ui/switch"; +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger, +} from "@/components/ui/tooltip"; import { api } from "@/utils/api"; +import { HelpCircle } from "lucide-react"; +import { toast } from "sonner"; interface Props { serverId?: string; @@ -52,7 +59,37 @@ export const ToggleDockerCleanup = ({ serverId }: Props) => { return (
- + + + + + + +

+ Runs a full Docker cleanup daily, pruning stopped + containers, unused images, volumes, build cache, and + system resources. This may remove images built for + Compose services that run on-demand (backup runners, + cron jobs, one-off tasks). +

+

+ For custom cleanup strategies, use{" "} + + Schedule Jobs + {" "} + on your web server or remote servers. +

+
+
+
); }; From ebbc008dbef25b7f87e2ef67e67987ccdcf1dcf1 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 5 Apr 2026 23:17:33 +0000 Subject: [PATCH 2/2] [autofix.ci] apply automated fixes --- .../settings/servers/actions/toggle-docker-cleanup.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/dokploy/components/dashboard/settings/servers/actions/toggle-docker-cleanup.tsx b/apps/dokploy/components/dashboard/settings/servers/actions/toggle-docker-cleanup.tsx index 42968ded3..9520a7f7a 100644 --- a/apps/dokploy/components/dashboard/settings/servers/actions/toggle-docker-cleanup.tsx +++ b/apps/dokploy/components/dashboard/settings/servers/actions/toggle-docker-cleanup.tsx @@ -69,11 +69,10 @@ export const ToggleDockerCleanup = ({ serverId }: Props) => {

- Runs a full Docker cleanup daily, pruning stopped - containers, unused images, volumes, build cache, and - system resources. This may remove images built for - Compose services that run on-demand (backup runners, - cron jobs, one-off tasks). + Runs a full Docker cleanup daily, pruning stopped containers, + unused images, volumes, build cache, and system resources. This + may remove images built for Compose services that run on-demand + (backup runners, cron jobs, one-off tasks).

For custom cleanup strategies, use{" "}