I've had similar experiences when diving into Docker for production use. It's a powerful tool, but those security concerns are definitely something to keep in mind.
From my own learning, one thing that stands out is the importance of keeping images lean to minimize attack surfaces and using proper access controls on Docker APIs. I actually incorporate Trivy into my CI/CD pipeline for vulnerability scanning, which has been really helpful.
For sensitive data, I always avoid hardcoding them into images and prefer using secrets management tools. I've found this keeps things a lot cleaner and safer.
When it comes to networking, I try to isolate containers as much as possible using Docker's network controls, and I've enabled user namespaces to provide an added layer of security.
Out of curiosity, has anyone come across specific incidents where these security measures significantly mitigated a threat? I'd be interested to hear those stories!