Editorial question32.7K views1,953 votes0 answers1,084 following
AI-generatedNamed volume or bind mount for a production database container that must run on Docker Desktop and Linux
I'm designing the storage layout for a PostgreSQL container that developers run locally on Docker Desktop (macOS/Windows) while production runs on a native Linux host. Docker's documentation recommends named volumes for container-generated data and notes that --mount is the preferred explicit syntax, but it leaves the choice open per workload. The tension I