
Container Diet
Slim down your Docker images with AI-powered sass. 🐳💅
114 followers
Slim down your Docker images with AI-powered sass. 🐳💅
114 followers
Stop shipping bloated containers! Container Diet is a CLI tool that analyzes your Docker images and Dockerfiles to provide actionable, context-aware optimization advice. It uses AI to detect unnecessary packages, security risks, and bad practices—all while delivering feedback in a "sassy dietician" persona that makes optimization fun.



Container Diet
Bookmarkjar ®
Container Diet
@nikuscs The diff is that you can run it locally, no need to copy/paste the whole Dockerfile content. Can analyze your local images as well, layer by layer and main focus is layers, unnecessary packages or build tools, security risks, and multi-stage build suggestions.
Swytchcode
Nice, Was looking for something like that. Will try this.
Container Diet
@chilarai Awesome! Let me know how much weight (MBs or GBs) your containers manage to lose. 📉
I'd love to hear your feedback once you've given it a spin—especially if the AI dietician gets a little too sassy with your code. Happy optimizing! 🐳
@sarrah me too
Can we not use other AIs for the same?
Can Container Diet generate images?
Container Diet
@premansh_tomar Good questions!
Vs. Generic AIs: You technically can, but you'd be working blind. Standard AIs only see the text you paste. Container Diet connects to your local Docker daemon to inspect the actual built layers. It feeds the AI real data—like specific file sizes, permissions, and hidden cache folders—so the advice is based on reality, not just the Dockerfile syntax.
Generating Images: It doesn't generate the image itself (you still run docker build). Think of it as a critic rather than a creator. It analyzes the image you already built, identifies the bloat, and gives you the code changes to shrink it. 📉
Great automation. Congratulations on the launch!
Container Diet
@mykyta_semenov_ Thank you! I really appreciate the support. 🙌
Product Hunt Wrapped 2025
lol @ "why is this 2GB?" felt. The sassy dietician vibe might actually make me fix stuff instead of shrugging. Love that it's local-only. Curious if it groks multi-stage builds and package manager caches (pip/npm). Tossing it at a chunky image later.
Container Diet
@alexcloudstar Haha, glad the vibe resonates! Yes! The AI specifically analyzes your build stages. If you aren't using multi-stage builds (or using them inefficiently), the Dietician will definitely call you out for carrying 'dead weight' like build tools in your final image. But I might have missed adding the caching to the Dietician focus.
Can't wait to see what it says about your chunky image—hope it survives the roast! 🍗🐳