<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Harsh Manvar</title>
    <description>The latest articles on DEV Community by Harsh Manvar (@harsh_manvar).</description>
    <link>https://dev.to/harsh_manvar</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F506067%2F206fe7bb-5447-4026-a211-5bfbeb03249e.jpeg</url>
      <title>DEV Community: Harsh Manvar</title>
      <link>https://dev.to/harsh_manvar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harsh_manvar"/>
    <language>en</language>
    <item>
      <title>Docker with AI: A Practical Guide to Running LLMs, Agents and MCP</title>
      <dc:creator>Harsh Manvar</dc:creator>
      <pubDate>Tue, 26 May 2026 05:39:35 +0000</pubDate>
      <link>https://dev.to/harsh_manvar/docker-with-ai-a-practical-guide-to-running-llms-agents-and-mcp-51n2</link>
      <guid>https://dev.to/harsh_manvar/docker-with-ai-a-practical-guide-to-running-llms-agents-and-mcp-51n2</guid>
      <description>&lt;p&gt;If you've been searching for how to actually use Docker with AI not just spin up a demo but run models, agents and MCP servers in production here's what We have learned over the years and put into our new book.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fifqeh1tb97hvd55f5g82.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fifqeh1tb97hvd55f5g82.jpg" alt="AI with Docker" width="800" height="987"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you typed "Docker with AI" into Google and landed here, you're in good company. That's the search I've watched explode over the last 18 months and it's also the question I get asked the most at meetups, on LinkedIn DMs.&lt;/p&gt;

&lt;p&gt;People aren't asking "what is AI" anymore. They're asking something a lot more uncomfortable :&lt;/p&gt;

&lt;p&gt;"I have a model, I have a notebook, I have a demo that worked once on my MacBook. Now what ?"&lt;/p&gt;

&lt;p&gt;This post is for that person. I want to share how I think about Docker with AI today what the stack actually looks like in 2026, where most teams get stuck and the structured path &lt;a class="mentioned-user" href="https://dev.to/ajeetraina"&gt;@ajeetraina&lt;/a&gt; and I wrote down in our new book, Operational AI with Docker (links at the end).&lt;/p&gt;

&lt;p&gt;No fluff. No "AI is changing the world." Just the parts I wish someone had handed me two years ago.&lt;/p&gt;

&lt;p&gt;Docker Solved Software Packaging. AI Has the Same Problem, Just Heavier.&lt;/p&gt;

&lt;p&gt;Think back to 2013. Before Docker, shipping a piece of software meant chasing dependencies, fighting OS differences and praying your requirements.txt lined up with the production box. Then containers showed up and the whole story compressed into three words: build, ship, run.&lt;/p&gt;

&lt;p&gt;AI in 2026 looks suspiciously similar except the baggage is heavier :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A model file that's 4 to 70 GB&lt;/li&gt;
&lt;li&gt;A tokenizer that needs to match the model exactly&lt;/li&gt;
&lt;li&gt;GPU drivers that hate you specifically&lt;/li&gt;
&lt;li&gt;Python environments that break the second you breathe on them&lt;/li&gt;
&lt;li&gt;An agent that needs tools. Tools that need secrets. Secrets that need policies&lt;/li&gt;
&lt;li&gt;A vector store. A retrieval pipeline. A prompt cache.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's not a notebook problem. That's a packaging, isolation and runtime problem which is exactly what Docker has been solving for a decade in the software world.&lt;/p&gt;

&lt;p&gt;So when I say "Docker with AI" I don't mean "let's stick a model inside a FROM python:3.11 and ship it." That's the cargo-cult version. The interesting version is:&lt;/p&gt;

&lt;p&gt;How do we use Docker's primitives - images, runtimes, networking, secrets, orchestration to make AI workloads portable, reproducible, and operable ?&lt;/p&gt;

&lt;p&gt;That's the whole question. Everything else is implementation detail.&lt;/p&gt;

&lt;p&gt;What "Docker with AI" Actually Means in 2026&lt;/p&gt;

&lt;p&gt;A lot has changed in the last year and most blog posts haven't caught up. So here's a quick map of the pieces I'm using daily right now.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Docker Model Runner (DMR)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This one trips people up. With Docker Model Runner, you don't put the model inside a container. DMR runs the model natively on the host, uses the GPU directly and exposes it through an OpenAI-compatible endpoint. What you get from Docker is the packaging story docker model pull, versioning and the same workflow you already know from images.&lt;/p&gt;

&lt;p&gt;So when someone asks me "should I run my model inside a container?", the honest answer in 2026 is : probably not and you don't have to. Use &lt;strong&gt;DMR&lt;/strong&gt; instead. That alone saves teams weeks of pain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MCP and Docker MCP Gateway&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Model Context Protocol (MCP) exploded around December 2024. Within a few months, the ecosystem had over 3,000 MCP servers file systems, GitHub, Slack, databases, browsers you name it. If you're building an agent, MCP is how it talks to the outside world.&lt;/p&gt;

&lt;p&gt;The problem? Running raw MCP servers is a security nightmare. Each one is a process with tool access, secrets and a giant trust surface. &lt;/p&gt;

&lt;p&gt;The MCP Gateway fixes this with policy enforcement, secrets isolation, dynamic tool discovery and audit logs the boring infrastructure stuff that nobody blogs about because it's not flashy but that you absolutely need before you let an agent touch production.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Docker Sandboxes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Agents generate code. Sometimes they hallucinate &lt;code&gt;rm -rf /&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;Sometimes they &lt;code&gt;pip-install&lt;/code&gt; something they shouldn't. Sandboxes give you a lightweight microVM to execute untrusted, agent-generated code without nuking your host. If you're running anything resembling an autonomous agent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Agentic Compose and Docker Agents&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once you have models, tools and sandboxes, you need a way to wire them together that isn't 800 lines of glue code. Agentic Compose lets you declare agents, sub-agents and tools in YAML the same mental model you already have for &lt;strong&gt;docker-compose.yml&lt;/strong&gt; just stretched to multi-agent workflows. It's versioned, reviewable and reproducible.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Kubernetes for GenAI&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Eventually it leaves your laptop. When it does, you need autoscaling, cost-aware routing (because GPU minutes are expensive), observability that actually understands token usage and graceful failover when an upstream model API goes down. That's where Kubernetes comes back into the picture same patterns you know, with AI-specific twists.&lt;br&gt;
That's the stack. Model Runner at the bottom, MCP and Sandboxes in the middle, Agents and Compose on top, Kubernetes wrapping the whole thing in production.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Patterns I See on Real Production Calls&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most of my day job is sitting with platform and SRE teams that are trying to take an AI workload from "the data scientist's laptop" to "a service my on-call rotation can survive." &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A few patterns repeat so often I now bring them up before the team does:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The model choice happens after the architecture is locked. Someone picks GPT-4 in week one because that's what the prototype used and six months later the bill is 5x the revenue. The chapter on choosing &lt;strong&gt;SLM vs MLM vs LLM&lt;/strong&gt; is there for exactly this so you make the call when it's cheap to change, not after a board meeting.&lt;/p&gt;

&lt;p&gt;Everything is one &lt;strong&gt;curl&lt;/strong&gt; away from production. I've lost count of the agent demos I've reviewed where the tool call is a raw HTTP request to a database, with no auth scoping, no rate limiting and a secret pasted into an env var. That's a 2 AM incident waiting to happen. MCP Gateway exists for this exact reason and we spend a real amount of the book on how to put policy in front of your agents before they touch anything sensitive.&lt;/p&gt;

&lt;p&gt;Nobody owns the GPU bill. When the workload was a prototype, it ran on someone's laptop for free. The moment it goes to a cluster, GPU costs land on a finance team that has no idea what an A100-hour even means. We walk through cost-aware routing, quantization and when running a smaller model locally is just objectively the right answer.&lt;br&gt;
The observability story is "we'll add it later" And later never comes. Standard APM tools don't understand tokens, prompt caching or model failover. The Kubernetes chapters cover what observability for an LLM service actually needs to look like because if you can't see it, you can't operate it.&lt;/p&gt;

&lt;p&gt;If any of these sound uncomfortably familiar, you're the reader we wrote this book for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's Inside the Book&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Rather than copy the table of contents, here's the practical arc what you can actually do by the time you finish each part:&lt;/p&gt;

&lt;p&gt;Run an &lt;strong&gt;LLM&lt;/strong&gt; locally with &lt;strong&gt;Docker Model Runner&lt;/strong&gt;, pull it like a container image, hit an OpenAI-compatible endpoint, swap models without changing a line of client code.&lt;/p&gt;

&lt;p&gt;Build an AI agent with MCP, give it tools through the MCP Gateway, enforce which tools it can call, isolate its secrets, get an audit trail of every action.&lt;/p&gt;

&lt;p&gt;Orchestrate a multi-agent system declaratively with &lt;strong&gt;Agentic Compose&lt;/strong&gt; an orchestrator agent, a few specialist sub-agents, shared state and a clean way to version the whole topology.&lt;/p&gt;

&lt;p&gt;Run agent-generated code safely inside Docker Sandboxes so a hallucinated shell command doesn't take down your laptop or your prod box.&lt;/p&gt;

&lt;p&gt;Deploy on Kubernetes with autoscaling, cost-aware routing across multiple model backends and observability that actually measures the things that matter tokens, latency, error rates, $/request.&lt;/p&gt;

&lt;p&gt;Every chapter is built on tools you can install today. Every example has working code in the companion repo, which we'll keep maintaining as the stack evolves.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who I Wrote This For&lt;/strong&gt;&lt;br&gt;
Honestly, the same people who keep asking me these questions:&lt;/p&gt;

&lt;p&gt;Developers who built an AI demo and now have to productionize it.&lt;br&gt;
DevOps and platform engineers suddenly responsible for LLM workloads they didn't sign up for.&lt;br&gt;
SREs trying to write runbooks for systems that hallucinate.&lt;br&gt;
Architects sketching out an agentic AI roadmap and looking for a real operational reference.&lt;/p&gt;

&lt;p&gt;You don't need an ML PhD. You don't need to have trained a model from scratch. If you're comfortable with containers and curious about how AI actually runs in real environments, you're the audience.&lt;br&gt;
And if you come from the AI side and containers feel like a black box&lt;br&gt;
the first few chapters will get you up to speed without talking down to you.&lt;/p&gt;

&lt;p&gt;A Quick Word on Why It's Not Another Tutorial Series&lt;/p&gt;

&lt;p&gt;Both &lt;a class="mentioned-user" href="https://dev.to/ajeetraina"&gt;@ajeetraina&lt;/a&gt; and I write a lot of blogs. He runs Collabnix; I've been publishing Docker and Kubernetes content for years. We could have just kept doing that.&lt;/p&gt;

&lt;p&gt;But here's what we kept running into: tutorials age fast in this space. A post from 8 months ago is already half-wrong. People were reading 12 different tutorials, getting 12 contradictory answers and ending up more confused than when they started.&lt;/p&gt;

&lt;p&gt;A book lets us tell a single, internally consistent story end to end. Pick the right model → run it locally → wrap it in an agent → secure the tools → sandbox the execution → ship to a cluster. &lt;/p&gt;

&lt;p&gt;One narrative. One stack. One opinionated path that actually works.&lt;br&gt;
It's a snapshot of where the practice stands in 2026 and a foundation you can build on as it keeps moving.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Get the Book&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If any of this resonated, you can grab a copy here :&lt;/p&gt;

&lt;p&gt;📘 Packt (Global): &lt;a href="https://www.packtpub.com/en-us/product/operational-ai-with-docker-9781807301088" rel="noopener noreferrer"&gt;Operational AI with Docker&lt;/a&gt;&lt;br&gt;
📦 Amazon (US): &lt;a href="https://www.amazon.com/Operational-AI-Docker-services-Kubernetes/dp/1807301095" rel="noopener noreferrer"&gt;Paperback + Kindle&lt;/a&gt;&lt;br&gt;
📦 Amazon (India): &lt;a href="https://www.amazon.in/Operational-AI-Docker-services-Kubernetes/dp/1807301095" rel="noopener noreferrer"&gt;Paperback + Kindle&lt;/a&gt;&lt;br&gt;
🔖 ISBN: 9781807301095&lt;/p&gt;

&lt;p&gt;If you do pick it up, tag me on LinkedIn or X (@manvar_harsh) I read every message and I'd love to hear what's working for you and where you're still stuck.&lt;/p&gt;

&lt;p&gt;Closing Thought&lt;/p&gt;

&lt;p&gt;Two years ago, "&lt;strong&gt;Docker with AI&lt;/strong&gt;" meant pulling a &lt;code&gt;tensorflow:latest&lt;/code&gt; image and hoping for the best. Today it means a real, layered runtime Model Runner, MCP, Sandboxes, Agentic Compose, Kubernetes that lets you move from a working demo to a system you'd actually let your customers depend on.&lt;/p&gt;

&lt;p&gt;That shift is what the book is about.&lt;/p&gt;

&lt;p&gt;If you've been stuck somewhere on that path, I hope this helps you take the next step.&lt;br&gt;
— Harsh&lt;/p&gt;

</description>
      <category>ai</category>
      <category>docker</category>
      <category>machinelearning</category>
      <category>llm</category>
    </item>
    <item>
      <title>Free Geo location &amp; IP API</title>
      <dc:creator>Harsh Manvar</dc:creator>
      <pubDate>Fri, 04 Nov 2022 04:30:12 +0000</pubDate>
      <link>https://dev.to/harsh_manvar/free-geo-location-ip-api-2f15</link>
      <guid>https://dev.to/harsh_manvar/free-geo-location-ip-api-2f15</guid>
      <description>&lt;h2&gt;
  
  
  Overview
&lt;/h2&gt;

&lt;p&gt;SaaS products are real game changers in today's cloud-based world, even if they might not be immediately evident. Cloud application development simplification trend and raised new phenomena software as a service.&lt;/p&gt;

&lt;p&gt;Consider using Geolocation API to provide relevant goods, services, news, and notifications if your online business depends on the user's location.&lt;/p&gt;

&lt;p&gt;There are two ways you can incorporate into your application.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Geolocation database:&lt;/strong&gt; This is an IP database that you buy, host on your server, and use as a reference in your application. The problem with using the IP database is that it needs to be updated frequently in order for you to have the most recent information on IP location.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Geo location API:&lt;/strong&gt; You don't have to worry about regularly maintaining and updating the database with the help of the geolocation API. You utilise the API within your application to get the pertinent IP data. You only pay for what you really use.&lt;/p&gt;

&lt;p&gt;I'd like to offer one of the Cheap Geolocation APIs I found.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yIAulSYM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z63xugunbxmhiaat2bom.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yIAulSYM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z63xugunbxmhiaat2bom.png" alt="Image description" width="800" height="577"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I liked it since they provide the &lt;strong&gt;5k&lt;/strong&gt; &lt;strong&gt;Free&lt;/strong&gt; Geolocation request API access in the Free tier.&lt;/p&gt;

&lt;p&gt;Response data have many different fields including Postal code, Country details, Time zone, ASN, Calling code etc.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://findmeip.com"&gt;FindmeIP.com&lt;/a&gt; API has a good average response time of 25–30ms. Their free plan includes 5000 monthly queries with all modules like location, country, and ASN.&lt;/p&gt;

&lt;p&gt;They offer 3 types of pricing models, you can choose the best one as per your requirement.&lt;/p&gt;

&lt;p&gt;Free &lt;br&gt;
5k requests/month - 30 Request / min&lt;/p&gt;

&lt;p&gt;Basic $3.99/month&lt;br&gt;
500k requests/month — 240 request / min&lt;/p&gt;

&lt;p&gt;Pro $9.99/month&lt;br&gt;
2M requests/month — No rate limit&lt;/p&gt;

&lt;p&gt;Enterprise $14.99/month&lt;br&gt;
5M requests/month — No rate limit&lt;/p&gt;

&lt;p&gt;Check out documentation at : &lt;a href="https://findmeip.com/documentation"&gt;https://findmeip.com/documentation&lt;/a&gt;&lt;/p&gt;

</description>
      <category>geolocati</category>
      <category>api</category>
      <category>freeapi</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
