SShortSingh.
Back to feed

How to shrink Docker's disk image on a Mac and reclaim the space

0
·5 views

Docker Desktop on macOS stores all images, containers, volumes and build cache in a single disk image file, Docker.raw, which appears as one large file to macOS. The file's on-disk usage can be checked with ls, and Docker Desktop's settings show the same information, while docker system df breaks down what occupies the space. Running docker system prune removes stopped containers, unused networks, dangling images and build cache, and adding -a also removes unused images that can be re-downloaded later. Volumes are not removed by pruning, and the space may take a few minutes to appear as free, or can be reclaimed immediately with a dedicated docker run command. The article also advises lowering the image size limit in settings only after pruning and if the contents can be rebuilt.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Paying Per Answer via Telegraph from Node, With Checks and Re-Buys When Wrong

A machine that buys data needs a way to pay per answer, a way to judge whether an answer is right, and another source to buy from when it is not. The Telegraph testnet provides payment and re-buying, and records every purchase publicly. A tutorial file of about 120 lines, using one dependency (viem), walks through building all three against the testnet node. The example addresses a case where two weather providers both returned confident, well-formed answers for a farm town, but one answered for the wrong location, which could mislead a spray drone. Setup requires Node 24, a testnet-only wallet funded with test tokens, and a deposit into the escrow contract, with each answer costing about one cent.

0
ProgrammingDEV Community ·

Node.js Image Review: Bounding Retention and Notifying Uploaders After Outcomes

The article explains how a logistics uploader's delivery photos can pile up storage, transfer, and processing costs when review pipelines keep full-size images. Its worked example assumes 10,000 photos a day at 4 MB each, showing a full review pass moves about 40 GB, versus 4 GB for a proposed 0.4 MB derivative. The author stresses that these are planning figures rather than measured results, and that a smaller derivative is only safe after checking that required text such as shipment labels survives OCR. Recommended practice includes queuing review work by internal image identifier, keeping originals in private storage behind short-lived access links, and treating link expiry as distinct from deletion. The Express request should return once the review work is durably accepted, and the uploader should be notified after both publish and reject outcomes.

0
ProgrammingDEV Community ·

Guide Explains Pitfalls in Parsing ANSI X9 BAI2 Bank Statement Files

A developer guide details how raw BAI2 (.bai) bank statements, used in corporate treasury and ERP integration, can be corrupted by naive comma-splitting parsers. It outlines the BAI2 record hierarchy, from file headers to control trailers, and explains how Funds Type codes shift column positions. The article also warns that slashes inside remittance text can truncate wire descriptions and that amounts must be scaled by currency decimal places. Finally, it recommends validating balance equations and control totals, and promotes a client-side browser converter and a GitHub spec repository.

0
ProgrammingDEV Community ·

Browser-Generated Calendar File for California DMV Transfer Deadlines

When a car is sold privately in California, the seller must file a Notice of Transfer and Release of Liability within 5 days, and the buyer must report the ownership change within 10 days, both counted from the day after the sale. A developer built a small browser-based calculator that computes these dates and exports them as an iCalendar (.ics) file to help users avoid missing them. The tool generates all-day events using date-only values, exclusive end dates, CRLF line endings, and stable unique identifiers to prevent duplicates on re-import. The file is created entirely in the browser through a Blob, so no sale data leaves the user's device. The article notes that this is general information rather than legal advice, and that the California DMV is the authoritative source for these rules.