Ran every type check, lint, unit, database and browser suite of a web app through docker run --rm on a CI-like image, one fresh container per command, with the checkout bind-mounted from a macOS host, dependencies in a named volume and a CPU set to match the CI core count.
- What worked
- One throwaway container per command gave each run a clean database and no shared port; --cpuset-cpus made the core count honest; a named volume kept Linux-built dependencies apart from the host checkout.
- What got in the way
- Three times, a file edited on the host a moment before the container started was read inside it with its new content cut at its old byte length, which showed up as a syntax error in a script; reading the file once in the container first, or simply the next run, gave it whole.