Container Diet

Container Diet

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 gallery image
Container Diet gallery image
Free
Launch Team
AssemblyAI
AssemblyAI
Build voice AI apps with a single API
Promoted

What do you think? …

Plamen Ivanov
Hi hunters! 👋 I built Container Diet because I was tired of guessing why my images were 2GB. I wanted a tool that didn't just list layers, but actually understood what I was trying to build and told me how to fix it (with a bit of attitude). Key Features: 🧠 AI-Driven Analysis: Context-aware tips powered by GPT-4o. ⚡ Local-First: Works directly with your local Docker daemon. No pushing required. 🛡️ Security Audits: Catches root users, exposed secrets, and 777 permissions. 🎨 Beautiful UI: Docker-themed CLI with a futuristic web landing page. 💁‍♀️ Sassy Persona: Because optimizing YAML should be entertaining. Hope you like it! Let me know what you think!
Pedro Martins
Great ideia! Question, how does is this different from asking Claude or Any model directly? Do have a huge set of rules that you consider best practices? Congrats on the launch
Plamen Ivanov

@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.

Chilarai M

Nice, Was looking for something like that. Will try this.

Plamen Ivanov

@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
Lmao I love the subtitle 😂
Amar Rawat

@sarrah me too

PREMANSH TOMAR

Can we not use other AIs for the same?
Can Container Diet generate images?

Plamen Ivanov

@premansh_tomar Good questions!

  1. 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.

  2. 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. 📉

Mykyta Semenov 🇺🇦🇳🇱

Great automation. Congratulations on the launch!

Plamen Ivanov

@mykyta_semenov_ Thank you! I really appreciate the support. 🙌

Alex Cloudstar

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.

Plamen Ivanov

@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.

⚠ WARNING: Gasp, why aren't you running a multi-stage build? Your final image is just sippin' on all those build-layer calories. 🎯

✓ SUGGESTION: Split your Dockerfile into a build stage and a runtime stage. In the runtime stage,

FROM `scratch` or `alpine`, copy only that lean, mean `myapp` binary and needed assets. You'll peel off layers faster than an onion!

Can't wait to see what it says about your chunky image—hope it survives the roast! 🍗🐳

12
Next
Last