DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
VGSources
Blog

How to Clean Up Docker Disk Space Automatically in Coolify

A practical Coolify guide for scheduling Docker cleanup, choosing threshold behavior, protecting volumes and rollback images, inspecting reclaimable data, and troubleshooting failed or ineffective runs.
WorldCoolify Length10 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Coolify can clean a server automatically through Servers → [server] → Docker Cleanup. A safe starting policy is a daily schedule (0 0 * * *) with an 80% disk threshold. Leave deletion of unused volumes, unused networks, and retained application images disabled until you have identified and backed up persistent data. Run one manual cleanup, inspect its execution result, and verify every application and database before making the policy more aggressive.

What Coolify’s automatic cleanup does

Coolify’s Docker cleanup removes reclaimable Docker data on a selected workload server. The workflow is designed to handle common unused images, build cache, and containers, while advanced settings determine whether it may also remove unused networks, unused volumes, or older application images that are normally kept for rollback. The feature is documented in Coolify’s automated Docker cleanup documentation.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Cleanup is scoped per server, not globally across your Coolify installation. Choose the server that actually hosts the applications and databases consuming disk space. A policy that is correct for a development host can be unsafe on a production host with persistent databases or a long rollback history.

Recommended baseline policy

  • Schedule: 0 0 * * *, once daily at midnight according to the server’s scheduler and timezone.
  • Trigger mode: choose Run on every schedule for predictable daily maintenance, or Only above disk threshold when cleanup should run only after the configured limit is reached.
  • Disk threshold: leave the starting value at 80 percent.
  • Advanced cleanup: initially keep deletion of unused volumes, unused networks, and retained application images disabled.
  • First run: start a manual cleanup and inspect the result before relying on the schedule.

This baseline gives you regular reclamation without immediately removing data that may be needed for a restore or rollback. Adjust it only after you have observed disk growth and identified which object classes are responsible.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

Configure Docker Cleanup in Coolify

  1. Sign in to Coolify and open Servers.
  2. Select the workload server whose Docker host is filling up.
  3. Open Docker Cleanup.
  4. Set Cleanup frequency to 0 0 * * *. This cron expression requests a daily midnight check.
  5. Choose Run on every schedule if you want a cleanup attempt every day. Choose Only above disk threshold if the cleanup should wait until disk usage reaches the configured threshold.
  6. Set Disk threshold to 80 as the conservative starting point.
  7. Expand Advanced cleanup. Leave Delete unused volumes, Delete unused networks, and the option that removes retained application images disabled while you audit the host.
  8. Save the settings.
  9. Select Run cleanup, review the confirmation dialog, and choose Run Docker Cleanup.
  10. Open Recent executions. Confirm that the run succeeded, review its output, and check whether disk usage fell when reclaimable data existed.

After the first run, test the applications and databases on that server. Check health checks, background workers, scheduled jobs, and database connectivity rather than assuming a successful cleanup message means the entire workload is healthy.

Choose the right trigger: schedule or threshold

Run on every schedule

This mode attempts cleanup at each cron occurrence, even when disk usage is below the threshold. It is useful when you want predictable maintenance and routinely generate build cache or temporary images. The operation can still find nothing to remove; a successful run does not imply that space was reclaimed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Only above disk threshold

This mode makes the threshold the gate. Cleanup waits until disk usage is at or above the configured percentage. An 80% value leaves approximately one-fifth of the host’s capacity available for new deployments, logs, and transient build files. It is a trigger, not a promise that exactly 20% will remain after cleanup.

What happens after a resource operation

Coolify also considers cleanup after a resource is stopped or deleted. It triggers only when disk usage is at or above the threshold and no cleanup has completed on that server during the preceding hour. Coolify’s scheduler dispatches scheduled checks every minute, while only one cleanup is allowed to run on a server at a time. These gates prevent repeated concurrent scans when several resources change together; they do not guarantee immediate reclamation after every deployment. The scheduling and resource-operation behavior are described in the official cleanup documentation.

Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

Understand every cleanup option before enabling it

Object class What is removed Primary risk Safe initial setting
Unused images and build data Docker data no longer needed by active workloads, as identified by Coolify’s cleanup process. Removing an image can require a new pull or rebuild during a later deployment. Allow the normal cleanup, then review reclaimed space and execution output.
Unused volumes Every Docker volume not currently attached to a container. A stopped or removed container may have left application or database data in that volume. Keep disabled until every volume is identified and backed up.
Unused networks Docker networks not currently used by a container. A manually managed or temporarily detached service may depend on a network that appears unused. Keep disabled until you understand custom networking on the host.
Old application images Older application images that Coolify would otherwise retain for rollback. Fewer known-good versions remain available when a deployment must be reverted. Keep retention enabled until your rollback requirement is documented.

Coolify explicitly warns that unused volumes can still contain important data. Enabling volume deletion is therefore a data-management decision, not merely a disk-saving switch. The advanced-option warning appears in the Coolify documentation.

Back up persistent data before deleting volumes

Inventory persistent storage before changing the volume setting. Coolify’s volume-mount and backup documentation explains that volume backups can remain on the deployment server and can optionally be copied to S3-compatible storage.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • List each volume and identify the application or database that owns it.
  • Record whether the volume is currently attached, intentionally detached, or abandoned.
  • Confirm where the backup is stored and how you would restore it on a new host.
  • Test at least one restore for critical data instead of treating a successfully created archive as proof of recoverability.

Use an application-aware database backup workflow for databases. A file-level archive of a volume while a database is writing can be inconsistent, even if the archive command itself completes without an error. Schedule logical or otherwise database-consistent backups separately from Docker object cleanup, and retain them independently of the host you are trying to free.

Inspect reclaimable data before expanding the policy

Use Coolify’s Images page

Open Servers → [server] → Images. Coolify shows the repository, tag, image ID, creation time, size, container references, total usage, and reclaimable usage. Only images marked Unused can be deleted from that page. This view helps distinguish a large image that is still serving traffic from an old image that can be regenerated. See the Docker Images documentation for the page’s behavior.

Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

Inspect the Docker host directly

If you have shell access, run read-only inventory commands on the exact server selected in Coolify:

  • docker ps — lists running containers.
  • docker image ls — lists local images, tags, IDs, and sizes.
  • docker volume ls — lists named volumes that require ownership checks.
  • docker network ls — lists Docker networks before considering network deletion.
  • docker system df — summarizes Docker disk usage and reclaimable amounts.

Capture the output before changing advanced settings. Compare it with Coolify’s image view and with your deployment records so that an apparently old object is not mistaken for disposable data.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Coolify cleanup versus direct Docker pruning

Approach Trigger Scope Data and rollback risk Auditability Operational load
Coolify scheduled cleanup Cron schedule, optionally gated by disk threshold. Normal unused Docker data, with separate controls for networks, volumes, and retained application images. Configurable; conservative when advanced deletion is disabled. Settings and recent executions are visible in Coolify. Can consume CPU while scanning and removing data.
Coolify manual cleanup Operator starts Run cleanup. Same server-level policy as the saved configuration. Depends on the saved advanced options; review them first. Execution result is recorded in Coolify. Immediate load while the operation runs.
Direct Docker prune Operator runs a shell command. Determined by the exact prune command and its flags. Can remove more object classes than intended, especially with volume pruning. Requires your own command history and change record. Runs outside Coolify’s scheduling and one-run-per-server safeguards.

Docker’s official guidance describes pruning as explicit and conservative: docker image prune removes dangling images by default, while broader commands remove additional categories. Named volumes are left alone unless volume pruning is requested. Read the Docker pruning guidance and treat commands such as docker system prune --volumes as an audited exception, not as a routine substitute for Coolify’s workflow.

Automate settings with the CLI or API

CLI

The command coolify server docker-cleanup update <server_uuid> updates a server’s cleanup configuration. Its options expose the cleanup frequency, disk threshold, force behavior, unused-network deletion, unused-volume deletion, and application-image retention. Run the command against the intended server UUID and review the command’s built-in help for the installed CLI version before scripting it. The complete option reference is at Coolify’s Docker cleanup update CLI reference.

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

Automated changes should be applied through the same change-control process as a production deployment. Store the server UUID and resulting settings, and avoid enabling destructive flags in a generic script that runs against every server.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

API

The server API exposes the corresponding settings, including docker_cleanup_frequency, docker_cleanup_threshold, force_docker_cleanup, delete_unused_volumes, delete_unused_networks, and disable_application_image_retention. Read the current values before sending an update so that an automation job does not overwrite a deliberate exception. The endpoint and response fields are documented at Coolify’s get-server-docker-cleanup API reference.

How to validate a cleanup run

  1. Check Recent executions for a success status and read the operation output.
  2. Confirm that disk usage changed only when reclaimable data was present; no change can be a normal result.
  3. Open the server’s Images page and compare total and reclaimable usage with the pre-run inventory.
  4. Run docker system df if shell access is available, then compare the result with Coolify’s figures.
  5. Exercise every production application endpoint, worker, scheduled task, and database connection.
  6. Verify that the application images you intentionally retain for rollback are still present.
  7. Record the reclaimed amount, elapsed time, and any warnings so the next threshold or schedule change is evidence-based.

Cleanup can be CPU-intensive while it scans and removes unused data. Run an initial manual cleanup during a maintenance window if the server is busy, and watch CPU, memory, I/O, deployment queues, and application latency while it runs.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common outcomes

The scheduled cleanup never runs

  • Confirm the cleanup is saved on the correct server, not merely on another host in the same Coolify installation.
  • Check that the cron expression is exactly 0 0 * * * if you intended a daily midnight schedule.
  • If using threshold mode, verify that disk usage is actually at or above the configured percentage.
  • Remember that Coolify permits only one cleanup per server at a time; an active or recently completed run can block another attempt during the one-hour resource-operation window.

The run succeeds but frees no space

  • Inspect the Images page for reclaimable usage and confirm whether large images are still referenced by containers.
  • Run docker system df to separate images, containers, local volumes, and build cache.
  • Check whether the largest objects are active volumes or retained rollback images, which the conservative policy intentionally leaves in place.
  • Review host-level logs and other files if Docker’s reclaimable total is small; Coolify cleanup cannot remove unrelated operating-system data.

A deployment loses its rollback image

Review whether application-image retention was disabled or whether a direct prune command removed the image. Restore the desired release by redeploying or pulling the required image, then re-enable retention and document how many previous versions your recovery plan requires.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

An application loses data after volume cleanup

Stop further destructive cleanup, identify the deleted volume and owning resource, and restore from the latest verified backup. If no consistent backup exists, recovery may not be possible. This is why volume ownership and restore testing must precede enabling Delete unused volumes.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Cleanup affects service performance

Because scanning and deletion can be CPU-intensive, move the cron time away from builds and traffic peaks, reduce how often it runs, or use threshold mode. Keep only one cleanup active per server and monitor I/O and application latency during the next run.

When to make the policy more aggressive

Enable unused-network deletion only after you have mapped custom networks to their containers and confirmed that detached services do not depend on them. Consider deleting unused volumes only when every unreferenced volume is demonstrably disposable or has a verified backup and restore path. Reduce application-image retention only after deciding how many prior releases you need for rollback and confirming that rebuilding or pulling an older release is acceptable.

Change one control at a time. Run a manual cleanup, inspect Recent executions, compare disk usage, and test workloads before changing the next control. This isolates the cause if a deployment, network connection, or data store behaves unexpectedly.

A practical maintenance checklist

  • Identify the server and record its current disk usage.
  • Inspect images in Coolify and inventory Docker containers, volumes, and networks.
  • Confirm application-aware database backups and test restoration for critical data.
  • Set a daily 0 0 * * * schedule and an 80% threshold.
  • Choose schedule mode deliberately: every schedule for predictable maintenance, threshold-only for event-driven reclamation.
  • Keep unused-volume, unused-network, and retained-image deletion disabled initially.
  • Run cleanup manually and review the execution output.
  • Verify applications, databases, workers, and rollback images.
  • Record reclaimed space and CPU/I/O impact.
  • Change advanced settings only after an ownership and recovery review.

Bottom line

Use Coolify’s server-level Docker Cleanup as the default automation path: daily at 0 0 * * *, with an 80% threshold and conservative advanced settings. Inspect reclaimable images, protect persistent data with consistent backups, and validate Recent executions and application health after every change. Direct Docker prune commands belong only in a deliberately scoped, audited recovery or maintenance procedure.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.