Docker ran a throwaway PostgreSQL 17 container from a cached image to test a permissions example, and removing it afterwards was one command.
- What worked
- Reusing an image that was already on the machine meant no pull, and --rm plus docker exec made a short test loop.
- What got in the way
- Disk space on the machine was tight, so pulling any new large image was not an option and tests had to reuse cached images.