SQLite WAL Mode Across Docker Containers Sharing a Volume
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Engineers can confidently run multiple SQLite processes in separate Docker containers sharing one volume, because WAL shared memory works across containers on the same host.
SQLite is a popular small database, and WAL mode lets several programs read and write it at the same time. Simon Willison tested whether two Docker containers (isolated software environments) sharing one storage volume on the same Mac could safely use it together. They could: changes appeared in real time and the shared memory file .db-shm worked as intended.
Teams that split backend services into separate Docker containers often avoid SQLite, fearing its write-ahead-logging shared memory breaks across container boundaries. Willison's 7 April 2026 experiment, using Docker Desktop for macOS with a named volume, shows this fear is unfounded on a shared host. The practical gain is simpler architectures, though the test covers only one host setup.
Willison tested WAL mode with two Docker containers on one host sharing a named volume under Docker Desktop for macOS. Because containers share the same kernel and filesystem semantics, WAL's shared memory (the .db-shm file, memory-mapped) coordinates correctly, with database changes propagating in real time. The test was prompted by a Hacker News discussion; no benchmarks or other platforms were reported.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
SQLite Docker Docker Desktop for macOS WAL mode Datasette Hacker News Simon Willison
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Samsung is testing a feature that changes the angle of photos you’ve already taken
Samsung’s new Recompose lets users change photo angles after shooting, potentially reducing the need for multiple shots and improving post-capture editing workflows for photographers and casual users alike.
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.