Skip to content
Docker and Sandboxing AI Agents episode artwork

Jul 30, 2026 50 min

Docker and Sandboxing AI Agents

from Software Engineering Daily

The most useful coding agents can mutate their environments by downloading packages, writing files, and connecting to services across the network. However, that freedom also presents dangers, and promises to usher in a new wave of security threats. Docker recently announced Docker Sandboxes, which give each agent its own isolated micro VM while preserving the familiar ergonomics of a container. A standard container shares the host’s kernel, but a micro VM emulates hardware and runs its own kernel, giving a stronger security boundary around code that cannot be trusted. Mark Cavage is the President and COO of Docker, and he previously worked at companies including Stripe, AWS and Oracle. In this episode, Mark joins Gregor Vand for a wide-ranging conversation that includes why agents break the immutability assumptions containers were built on, how micro VMs differ from both containers and traditional VMs, and the still-unsolved challenge of giving agents scoped, trustworthy access to sensitive services and data. Sponsorship inquiries: [email protected] The post Docker and Sandboxing AI Agents appeared first on Software Engineering Daily.

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Docker and Sandboxing AI Agents

0:00 50:50
of matches

Transcript Auto-generated, may contain errors

The most useful coding agents can mutate their environments by downloading packages, writing files, and connecting to services across the network. However, that freedom also presents dangers and promises to usher in a new wave of security threats. Docker recently announced Docker Sandboxes, which gives each agent its own isolated micro-VM while preserving the familiar ergonomics of a container. A standard container shares the host's kernel, but a micro-VM emulates hardware and runs its own kernel, giving a stronger security boundary around code that cannot be trusted. Mark Kavage is the president and COO of Docker, and he previously worked at companies including Stripe, AWS, and Oracle. In this episode, Mark joins Gregor Vand for a wide-ranging conversation that includes why agents break the immutability assumptions containers were built on, how micro VMs differ from both containers and traditional VMs, and the still-unsolved challenge of giving agents scoped, trustworthy access to sensitive services and data. Gregor Vand is a security-focused technologist, having previously been a CTO across cybersecurity, cyber insurance, and general software engineering companies.

He is based in Singapore and can be found via his profile at van.hk or on LinkedIn. Hello and welcome to Software Engineering Daily. My guest today is Mark Kavich. Thank you for coming on today, Mark. Yeah, thanks for having me. It's great to be here. Yeah, so super exciting. You're the president at Docker. And Docker, I'm sure a lot of our audience know pretty intimately. We'll get into what Docker is for those that don't know in a second as well. As we like to do, you've had a pretty storied history in the tech world or through tech companies. Can you just give us a brief story of how you...

got all the way to Docker. Absolutely. Well, it's a funny story. There's two other characters here, Don and Tushar. We were part of the, let's call it generation one of Amazon web services back in 2005. And we're all office mates back when any of us was, I don't know, somewhere around 100 to 200 people, somewhere in there. Time all blurs together. We've gone off and done different things over the years. We had also gone to Oracle and built Oracle's cloud, which was always tell people it's a weird thing to do voluntarily, but we did that. At some point in the last couple of years, Docker was looking for new leadership. And as I was joking, fortunately for Docker, they found us. And so Tushar had found his way to Docker two and a half years ago, three years ago. And then as the band of Merry Brothers do, sort of called on his friends and here we are. So then Don and I joined February of last year.

Yeah, let's start with Docker is and then actually might just kind of pull back for a second after that. But yeah, what is Docker? Full stop for those that don't know. Yeah, Docker is a ubiquitous brand. I think many of us grew up on it over the last decade. Docker equals equals containers is the shortest way to put it. But there's Docker, the company, there's Docker, the technology, there's almost like Docker, the community and ethos. It's like it's many things roll in one word, but at its root, it's containers. And basically, it's, as I always tell people, if you go back to the very first Genesis, when Solomon hikes, we found a Docker.

solved a problem. It was, the cloud exists. I have code on my laptop. I would like to get my code from my laptop to the cloud. This is really hard. Docker is a unification of packaging technologies to go make it easy to build and then ship software reproducibly from one place to the other, as well as a runtime, which we'll talk about in a bit, that allows you to run those set containers. And then cleverly packed in there are several interesting primitives. Historically, it leveraged OS virtualization in Linux. So you have a container is really, at the end of the day, a Linux namespace and gives you isolation at the kernel level. That's multifaceted packed in there. Anyway, there's Docker technology. There's Docker Hub as well, which is the ecosystem where people produce.

all kinds of packages. We Docker see the ecosystem with things like Node.js and MySQL and Python and Postgres and every other popular open source thing you can think of. And then tens of millions of people go and publish to Docker Hub every day and produce software that other people can depend on and build stacks and so on. And so now, as you might imagine, a decade later, there is a very rich and vibrant ecosystem. There's a fascinating stat I'd read.

it's not ours, I wish it was, where somebody had done a survey and concluded it was like 92 or 93% of every company on earth at this point runs containers in production somewhere. So it truly is now this ubiquitous way that people build and run software because it's kind of the lingua franca, it gets you portability, it gets you from laptop to cloud, it gets you from cloud to cloud, it runs everywhere. So that's maybe a longer answer than you're looking for? No, no, there's never such a thing as a too long answer at SE Daily. So yeah, I mean, I think it's one of these in computing, we have names for things that we were trying to sort of analogize to something in the human world, if you want to call it that. And like, but a container really is that, like, I think it's such a great metaphor or thing, which is like, you have this portable.

literal container, like think of container ships that you can move it from ship to ship and it's the same system. And like, that was always the kind of the thesis here, right? Yeah. And importantly, you can pack all your stuff into it and it gives you a way to get your thing from point A to point B. And what it lets you do is encode all your dependencies and take no, you don't need to worry what the host runs. In the old days, I am old, you know, it was always this like protracted system to keep the build system up and like, oh, it worked on my laptop, but failed in CI. And then it worked in CI, but then I failed in prod because there's some variances across.

whatever the kernel is and whatever the operating system is and whatever glibc is there. And I'm updating myself at this point, but these things are all still with us. But that problem really has been largely just solved by Docker because it allows you to encode all the dependencies all the way down to effectively the base Linux layer and just not worry about that anymore. So you put all your stuff in a container and then you ship it wherever you want on whatever boat you want or whatever crane you want. Yeah. So we're going to get, I mean, today's topic is specifically is a newish products that you guys have produced or on agent sandboxes. We're going to get to that very shortly. Could you maybe just also walk us through like, what is the general Docker products suite? If you like nowadays, like I think for those that maybe kind of started with just like a Mac app and then maybe we haven't appreciated there's a whole bunch of our bits to Docker now. So like just before we get into the latest product. Absolutely. And what we will definitely spend the majority of time, I think talking about AI, as you might've mentioned for a lot of that focus goes, but the company, the core Docker.

desktop and CI tooling, we've been around for a decade. We have a rich ecosystem of things. The biggest thing above and beyond Docker desktop, which I think most people are, when they think of Docker today, I think they think, oh, I downloaded Docker desktop and I did my stuff. And there's all kinds of things that are in there around AI assistants called Gordon, there's Scout for doing dependency scanning, et cetera. The biggest thing I think we've done in the last year besides the things around that is really what's in the, I'll call it the hardened image space. So, you know, again, we have in Docker Hub, again, the hosting package manager for the ecosystem. We see the ecosystem for the last decade with several hundred images that help people again get started with Java, Python, Node.

MySQL, et cetera. The wonderful thing with open source is everybody can contribute to it. The problem with open source is everybody can contribute to it. And then some people contribute malware. And so many companies struggle to manage dependencies and manage their open source dependencies specifically. So Docker hard images is a way to go. It's a very opinionated, stripped down, Debian and Alpine derived image where the contract from us is we'll never run as rude. We do all the things you'd expect somebody to go do to run software securely. But importantly, we also, there's an SLA available with it where we actually are able to keep CVs out of it and promise you that within seven days of a.

vulnerability, we're able to go patch it. And so that's probably the biggest, I'd say the biggest thing besides AI that's been new that we've done in the last year to year and a half has been really Docker hardened images because it's sort of above and beyond the tooling and the runtime has been sort of the, okay, this is the content that really now I put all my stuff in the container and all my stuff is actually much safer than being, you know, I can make it clean, not dirty effectively. So, and then there's AI, which we'll talk about for I'm sure quite a bit. Yeah. The hard containers piece is super interesting. We've done a couple of episodes on that sort of concept and it's a very interesting space in terms of supply chain attacks and them only increasing is what we see. So, yeah.

At this point, I think the funny thing, everybody goes through these, the industry goes through these trends. And like four or five years ago, I swear, if you asked anybody, they'd say, oh, the laptop's dead. We're all going to use cloud environments, et cetera, et cetera, et cetera. Nobody cared. You couldn't get the time of day to talk about it. And now I think the developer laptop, point in fact, is the most juicy target for hackers on earth because it's like, great, if I get my keys there, I can go get massive distribution through the open source ecosystem. And so, yeah, just supply chain security all up. I think it's a very...

broad and sprawling topic. You could spend, you know, two hours talking about all the ins and outs of it, but it's a real problem. And when we look at the last, you know, six months of attacks, they practically speaking all started with got access to GitHub actions or got access to laptops. And then basically once they're got credentials and the world's your oyster. So, yeah, it's kind of scary what we've seen over the last, especially a couple of years, just the sophistication of how people have gotten to others' laptops to do such a thing. Today, yeah, we are going to speak a lot about AI. I always like trying to time it, like how far do you get through an episode before saying AI now, but today's topic is that, and we're going to be talking about Docker sandboxes. So I think...

To kind of set the scene, though, we're talking about the concept of an agent sandbox in general. As a concept, it's not unique to Docker. So could you maybe just set the scene, like, what is an agent sandbox at all, basically? Great question. We get this all the time in particular, because Docker being such a ubiquitous word, Docker, let's call it historic Docker, gets used for a lot of agent sandboxing. But we've clearly done something very different, and I'll explain why. So at the end of the day, a sandbox is yet another container, for lack of a better word, that I can put my agent into and bound what it does and control all the dependencies it has and control the environment it has. So fundamentally, it's a virtual machine or a container or something.

Now, our flavor of it is actually based on micro VM. So it is actually, the funny thing we've done is tried to, it's not a funny thing, but maybe hopefully we think the clever thing, give it the ergonomics of Docker, but importantly have a different construct on what the runtime is. And the reason this is important is it's full micro VM base, which you get every time you run, there's a command line you download off of Docker called this in brew and all the obvious places. If you run SBX, our sandbox command, SBX run, claw, SBX run, Gemini, whatever you want, open claw, you get a dedicated micro VM per thing that looks, feels, acts, kind of works the same way as a container starts up in a second or less. Like it's all feels, oh, this feels like a Docker thing.

But it is fundamentally a VM. Now, the reason this is important, Docker containers have been around for a decade. And the ecosystem, I think, settled very early on in a very key primitive or very key property, not necessarily by force, but by convention of immutability. So when you think about Docker containers, I build my stuff. I put it in the box. And the box now goes from point A to point B. And I get everything about it outside the box. And then there's no logs. There's no nothing. The thing is meant to be immutable. And indeed, if you look at the way that people deploy at scale, the people run something like Kubernetes. And they'll actually have drift detection alerts and all the rest.

is different at all or changed from the signature that was deployed, it's considered a problem. And like in many cases, it's just like, that's it, shoot it in the head, start over, and we'll go redeploy the world. The problem is that's not how agents work at all. You run Cloud Code or OpenClaw or whatever you want. The very first thing it wants to do is like, oh, thanks, Mark. Thanks for that great question. I've got you. You're so right. I'm going to go off and I'm going to go download 17 Python packages and write a bunch of temp files. I'm going to do all kinds of crazy agent things that they do. They fundamentally, they need to mutate their environment. And I think that starts at a very core place of, well, often they're very good at writing code. And so whether you're a software engineer or not, many times the best way to answer a question is all the problem is the agent needs to write code.

But in many cases, as people build more and more and more sophisticated agents, you really can't plan ahead what access it needs to something. It becomes no different than a person, where at runtime, you want to do some dynamic decision of what it needs, what it can access, and so on. So for us, this Docker sandbox or this SBX command really is a micro VM with this core. very breaking primitive, like it's a very breaking model for what Docker containers have been, is meant to provide the ergonomics, meant to provide sort of the brand and the ethos of everything about Docker, but for that agent world. And then what it is, is it's a bounding box and you get to have deterministic controls over a non-deterministic thing. You keep all your secrets out of it. You can very carefully specify what files and file systems you want in and out of it. And you can manage everything about the network on it. We're doing more things beyond that. But for today, that's the core shape of it is it's a box that you can observe and you can control and you can be the god of your own little agent world. And you can keep it from ever seeing anything in a very deterministic way.

which is very different than every time I interact with agents and a new update to auto mode or something comes out, I'm like, oh, let me go see if I can make it do the thing that it should do. And it takes me indeed like four minutes or less. It's just not that hard to go make them do something that you don't want them to do for the generation of technology we have. And sometimes I think you need determinism to actually help make the non-determinism safe. So sandboxing from us, the docker, sandboxing I think is an overloaded word. The computer science definition is it's a place to run untrusted code. In the agent's world, it practically speaking means sort of VM boundary for us. This micro VM technology is something we've taken all the DNA of Docker and all the things we've been doing for decades. We make it work on Mac, Windows and Linux repeatably. It can work anywhere you want. You get to package up your stuff.

actually as a Docker container, slightly confusingly for convenience and ease, but it runs in that bounded way that you can then observe and control. what i would like to just pick on there is is is actually the micro vm versus vm so obviously we're talking about virtual machine just for anyone not familiar with the acronym micro vms into my world have just you know exploded in the sense like i work people i work at super base and super base we interact with our companies who want to have these agents doing things and running things and micro vm has just become this exploded term what exactly how do you describe a micro vm in comparison to a vm because i think a lot of people previously said well if i want to run something sort of quote safely i create a virtual machine and then i do on that but what is the distinction i mean in the word there is micro perhaps At the end of the day, I mean, this is where it's like, we used to call things unikernels. There's always these words that are, for SE Daily, it's like still kind of half marketing. At the end of the day, it is still a virtual machine, but it has some properties of, well, we decide the kernel for you. We pick a bunch of things and we super optimize that it can be, you can run a lot of them. They run very resource efficiently and they start very fast. The way to think about it today, we have many layers. It's a fairly complex architecture, as you might imagine, to do all the things we do on the host, like systems programming is back in a very exciting way.

But the core, core thing of start VM of any type, we can do in under 100 milliseconds, like just to get the most raw thing up. We don't expose that because it's not terribly useful to the average person that wants to run a cloud code. But that core thing is meant to be super, super lightweight and super fast. And then we do just a bunch of optimizations to make it where historically you think of VMs and it's like, oh, I run VMware Fusion or Parallels or something and allocate nine gigs of memory plus two CPUs. Like you just don't do any of that. And it's meant to be, this is not a terribly technical answer, but it's meant to convey really, it's a very fast thing where we've made a lot of opinions around the kernel and everything else. So you get...

an environment that has the properties of a VM, but we've just made it very small and very fast. Yeah, die a VM. Yeah, die a VM. That's a great explanation in terms of understanding a lot of people probably sort of, yeah, exactly. A virtual machine to me is just this big heavy thing, exactly, that takes up all this memory, but then a micro VM, as it sounds, sort of super optimized. At the end of the day, a virtual machine emulates CPU, memory, network, IO, which is contrasted, like something I was saying at the very beginning with Docker, with OS virtualization, where you have a shared kernel and you're basically emulating that kernel. This is actually full on, I emulate hardware, the contract you get is a hardware interface, and then we just tune a lot of stuff to make it small and fast. Yeah, that's quite nice. So a segue into what makes...

I think Docker sandbox is different, which is the idea that you do actually get like your agent does actually get its own Docker daemon network and file system inside that sandbox. Could you speak a bit to kind of that architecture? Yeah, the way it works is you get this micro VM. And in that it is a full blown Linux OS. You can read around anything like we have a bunch of them built on our Docker hardened images, images, you can build them on Ubuntu, you can build them on Red Hat, build them wherever you want. And by the way, for agents, there is an SPX run shell. So you too, as a human can just get a shell and do whatever you want. Now in that you get a network proxy and an HTTP proxy where we are able in IO proxies where we enforce everything that comes in and out of the machine.

So by default, you can start this up and it has no access to any host system, file system, et cetera. Sometimes that's useful. You just want to make a throwaway thing that maybe goes and downloads some shady code off of GitHub and tests it, inspects it, whatever. That's what you want. More commonly, you're working in something like a GitHub repo project or a Git project, excuse me. And you want to start either a WorkTree clone or you want to start literally with that project mounted into the file system so the agent can actually work on your behalf and you can launch many of them. That's thing one. And two, you have network controls. So you have, on the outside of this, you have an L4 terminating proxy that inspects everything. And you get to, when you start it up, you get to pick.

The level of security and safety you want. You can be incredibly locked down and say no to every network call ever. Again, if you're trying to like, I don't know, introspect some Bitcoin code out of a banned country or something, maybe you should do that. In practical terms, people wind up with something like an allow list or deny list and just block bad things versus common things and allow things for their company. And then there's the credential injection. So along with it, it leverages an OS keychain. And you put something like your Anthropa key or your GitHub key or your Docker hub token and so on and so forth in Vault. And then inject it into the machine as actually a proxy parameter that is not the real credential. So inside the box, as long as you're using this correctly.

the agent or the software can never see a real credential and everything gets intercepted by either the network proxy or by an HTTP proxy. So we'll get into all the threat models and all the rest of what it can and can't do, et cetera. But with those primitives, you have the ability to keep only the things you want in the machine allowed, only the network calls you want to happen. And then you have a bounding perimeter around breach and how hard it is to roll your credentials because your credential was never shown to it, this effectively hostile adversarial kind of collaborative cooperative agent. With that, you then get this environment with all the controls around it. And then there's, we've called them kits, which are a way for you to go package up your own.

flavors of cloud code or pi or pick whatever you want you want and you can run and create and share agents with other people that do what you want like i have my own that i'm a big fan of the pi agent now i've come to love this thing and mine is this like crazy setup where i've forked in a bunch of ways i've changed a bunch of the hooks and parameters i have you know all my skills and my mcps and everything else like loaded into it and then it's mine i can share it to other people inside the company and they can go use it if they want and people can do the same thing so yeah and yeah as you say threat model is something that's super interesting and we'll definitely sort of get onto that i had a feeling you might ask you definitely get onto that just sort of sticking on i guess sort of architecture and that kind of thing for a second. The cold start piece to this, how does it actually work in practice? You know, it's like these things, as they sound, they need to spin up from effectively nothing, but at a speed that you almost don't realize. So like, how does that kind of all work? Yeah. So the thing, when we're talking about the architecture, I've admitted this, the SPX command today that you download off the website is clearly optimized for the laptop case. I'm a human being. I'm using my laptop. I want to run cloud code. I would like it to be safe and not be dangerous. I've been optimized for that. That's what it's for. We have this coming soon to a cloud near you or to a Docker website pricing page near you is a Docker cloud behind that that allows you to then work with those agents.

behind the scenes. And so you'll get different flavors of it. And we have a flavor working with people to, again, just like Dockers, we're doing everything to put the Docker ethos. Allow that SBX agent to run, or Damon, sorry, to run anywhere. Kubernetes clusters, your environments, et cetera. So with that as a thing for us where we're explicitly making a runtime that is secure and cross-platform and has all these controls, to your startup question, what literally happens is when you take your laptop case, this in mind, but it doesn't matter if it's Mac or Windows, then when you want to go launch, say, Cloud Code or OpenClaw or even a shell, the very first thing it will do is go,

look at a registry, that registry might be Docker Hub, look for a name and pull it down if you don't have it locally. If you don't have it locally, it will pull down this kit image that I described, which is in fact just an OCI or a Docker container as the actual bits and packaging of your stuff, what's in it, like what skills, what agent, et cetera. And then it will create a new virtual machine for you, or you can obviously attach to ones that are running, but it will create a new one for you. boot up into that micro VM and then start that software image as the actual agent and then present to you back as a human. Here's your cloud code interface and you can just now type to it the way you would. And you as a human, your workflow is unchanged from using cloud code or open code or anything else on your laptop. It's like bit for bit identical, we just literally give you the screen. We give you the screen with a box around it or the logical box around it. Now in terms of the startup time for it, the lowest level primitive is 700 milliseconds to get up.

In practical terms, in human experience time, like I should do this before this call where it's like, okay, I've already downloaded off my laptop. I'm not sitting on my airplane Wi-Fi or something. I have a shell image. A small image that doesn't have an interactive agent starts in around a second or just a little underneath one second. So very fast for the human to get up. In the cloud case, it actually is optimized for closer to that 100 millisecond mark because now you're talking about programmatic construction and spin up and spin down and like very bursty scale out ephemeral transient workloads that need to go happen. So that same runtime is optimized for both of these. The actual SBX command that you download off the website today is very much optimized around the human laptop case. And so that's closer to a second because...

Well, when you get a cloud code or a codex image from us, it's like four or five gigs because it's not just cloud. It's like, okay, I've packed in the Rust compiler, I've packed in the Go compiler. We've basically packed in a dev box that's useful for the coding agent to go do stuff. You can tune it to your heart's content to change that. The one you get from us is meant to just, air quotes, just work. So it's around a second to go get the human facing one up, which is practically speaking for most people, okay, so what? So every time I start cloud, it takes it several seconds to go back and forth with the cloud API, which may be airing and overloaded at the moment and whatever it does. So for the human, our goal is to get you the machine and get you into the...

agent, which then operates at the speed of inference in human time, which is very different than something like programmatic scale-out time. Yeah, that's very impressive. I'm just zooming out to a product question, I guess, for a second, which was when this was being conceptualized at Docker, thinking about cloud code, was that always a sort of first-class primitive that had to be part of the product? Yeah, I'm just teasing this. We have a cloud coming soon. The core thesis from us is, again, most people using Docker today, when they think of it, they think of, I have Docker desktop, or have a Kubernetes engine, or have Docker images, and that's how they think about it. But that's what most people...

associate Docker with. It's a natural thing for us to go do. It's like, okay, I solved the same problem. Because we got asked over and over and over again, hey, how do I run Cloud Code inside of Docker? And or, hey, Cloud Code is using Docker. What do I do? And we ourselves use agents everywhere inside the company at this point. So as we went through the journey ourselves, we're also like, well, okay, we're hearing from the market and we ourselves are trying to do this. We kind of solved the problem for us and for everyone. But it is, yeah, it was very much built around, there's something like the chatbot that you would build for a customer support site or so your quintessential examples you have as these agents that run for consumer facing things that are practice speaking still look like normal software because they have a bunch of stuff to go with them. And then there's the human optimized case of trying to work with the coding agent. And so long minute answer to,

Yes, it was a very deliberate decision to go optimize for the popular common agents that people are trying to run day in and day out. And so I think there's 12 or 15 that we ship, and then a bunch of people have obviously done their own things on top of the ecosystem. Yeah, that makes sense. And this is a sidebar. And a disclaimer, I have almost no knowledge of this area, but I'm just curious, the whole OpenClaw thing, does that apply here at all? I often joke all the time, I keep seeing everybody, there's this Mac mini shortage for buying OpenClaws. You can put them in a little virtual machine thing, you just put them in that. And so for us, we made an agnostic machine. What's the ethos of Docker?

Build runs, run anywhere. We're Switzerland. I mean, without getting into geopolitics, because, you know, especially as an American, I feel like I can't say anything anymore. But anyway, we're Switzerland, and we work with anything. So it's open any model, any hardness, any agent, any operating system, any cloud. Like, that's our entire ethos. And I think we're very credible to be the company that keeps that true. And so CloudCode and Codex, and if you go back in time last year, it's like, oh, everybody's on Cursor, and then CloudCode came out, and then we changed that. And then the OpenClaw multiple thing all happened. And so now I think you have this explosion of a bunch of popular agents, and, you know, OpenCode is one amongst many. So, sorry, OpenClaw.

Yeah, that makes sense. So let's get on to threat model. I think a lot of people would be quite interested in this one. So what is it? I mean, in terms of what if you had to think through and step through in terms of making this secure? And then we'll get to you like out of scope as well, because that's every threat model. You have to decide what's in and out. So what is in effectively? Yeah, well, I think there's two things to this and what's in, which is first the sandbox itself. And then if you were a company or a team of people with multiple people, because again, you have multiple problems, but start with just the, I'm a single person. I'm running something on my laptop. What am I worried about? Again, threat number one, if you're running something like, well, it doesn't matter if it's cloud or open code or open call or whatever.

It is not terribly hard to go trick the agent into doing something that it shouldn't do regardless of what the permission setting is. And that's true if I'm running something like MCP and I get managed to like, you know, there's this hack last year of people doing Google Calendar invites that had, you know, bad prompt injection, et cetera. Great. I get the agent to do something, read something that is innocuous. It gets injected. The agent says, oh, okay, great. I should go do that. And it goes off and reads your keys, reads your files, does whatever. Big threat number one is actually protect the agent from the host. And for the thing we talked about at the beginning where the developer environment is now like the juiciest target for supply chain.

That's a big one because we've actually just taken all the keys out of the box. No matter what you tell the agent to go do, no matter what the permissions are set on. By the way, when you run these, I'm going to say this, cloud code or something, run an air quotes YOLO mode, where effectively that's the contract of the box, which is it's actually safe to run a YOLO mode and doesn't sit there and nag you every two minutes of like, hey, Mark, is it okay to do this? Hey, Greg, where can I do this? Hey, can I do this? Hey, can I do this? Like, Jesus, shut up, just do it. And so the productivity gain you get is great. Now I can actually run a YOLO mode, but it can never, ever, ever go do bad things. It can't read my keys. It can't RMRF my file system. It can't do bad things to my environment that I don't want it to go do. I can

carefully keep things out of it. So big threat number one is keep the agent from being runaway and doing bad things to access to the host that's on host. Two is, similarly, the other big case you get is network. The threat model there crosses secrets and files together and solve that problem on the host. The threat model on network is, well, okay, it's not that hard to go make the agent again. Even if I've constrained it down to the project that I want and I can't access all my things, it almost certainly can still have something that I care about because otherwise what's it doing? And so in that case, now you have the other problem. We have exfiltration of, okay, I can now get the agent to send something that it legitimately has access to that I must give it access to. I can get it to send something to somewhere else. And this is where the network firewalls and the secret, the HTTP proxy firewalls come in and basically allow you to go prevent the agent deterministically from doing something that it can't do. So the two big threat models by far are

Keep it from doing bad things on the host. Keep it from exfiltrating data. That's the biggest ones from the individual's perspective. We'll talk about what it does in a second. Now, hand-in-hand with that is, okay, you're a company, and you actually have many people, and unfortunately, many people, the bigger the company gets, the less you can trust everybody. And so along with this, we have sort of the commercial, the SBA, I've admitted to say this too, the SBA product is free for everybody to go download. You can just go use it. It's no strings attached. Go forth and make your life better. Commercially, we have this AI governance package that we sell behind the scenes, which is we go to a company and say, okay, I can give you very rich, expressive policies and controls on MCPs, on...

agents and on what people can do. And so if you're a platform or an IT or a security team or something where you're actually trying to manage the threat of your company of who can even use what agents, what tools can they have access to, what are they allowed to let them call, you need to go enforce that for the company. So it's kind of the same threat models at scale or the same threat models just applied at scale. The one additional one that comes with it, and we are working on making this available for everybody just today, it's enterprise only, is actually richer controls around MCP and data exfiltration. I've heard this, I don't know how many times now from enterprises of no financial data or people data about my company can ever go to the model provider. I don't ever want that to happen. And so we actually can do that from an MCP perspective and a tool calling perspective, but we can have a sidebar at some point on MCP versus CLIs and all that. But we actually can allow organizations to...

take control of that and actually prevent things like that. And we're working on a whole lot more things there. And then they get clearly, there's no threat on earth that works like trust and verify. You still need observability and audit and all the rest. And so they can actually get back out of this now. They can set controls, they can enforce these things, and then they get back centralized observability and audit around it. That's what it does. And it's in scope, at least today. We are working on more stuff, but that's what I would say is on the tin today. And I've actually was on somebody else's podcast and they were literally sitting there trying to live hack and break out of the SBX session. Like every five minutes was like, oh, man, try this. It didn't break out. The VM actually, we feel quite confident is very well hardened and very well contained. And then that thread, as I've described, it is there. Clearly, you have to configure it for yourself for your own.

environment but it gives you a very deterministic hardened contract around those things i described yeah unfortunately on this podcast we're not live hacking live coding but i am interested to get on to after this i believe the way that docker has been dogfooding this product specifically is super interesting so we'll get on to that in a second but yeah let's run this out as well so out of scope what things are you saying this is just not something that we are considering as protected against at the moment I'll be very precise in terms of at the moment because there's stuff we're working on. Like at the end of the day, I think the hardest problem is when you think about agents, you can't talk about this without talking about the data and the semantics around the data where data could mean, you know, cloud services too. Like very concrete example is I have my own agent set up to read Slack all the time. And they tell me all kinds of useful stuff. It's incredibly helpful. I have a love-hate relationship with Slack. My nightmare scenario is that it ever writes to Slack and starts sending different things to private channels or like the wrong, I mean, I'm in all these workspaces and all these other companies. Like, could you imagine telling one about the other? So I'm like, I have very, very, very hard boundaries that I like.

Basically double check once a week to make sure it's still in place around what it can and can't do. But what I really want is I want an agent that I can control and say, okay, I want you to use Slack. I want to be able to write controls that say, you agent can write to this Slack channel, to those people with this types of data. That's the actual thing I think that we need to get to as an industry. I don't think anybody has solved this yet. That to me is where we're not all the way there to that point yet. Actually, to be clear, this is a software engineering podcast, not a marketing podcast. In terms of what it does at the moment, we don't do that. And so you still need to apply.

good judgment in terms of how risky you're willing to be with your agent and what you want to let it have access to. Like I was reading a pretty funny Reddit post I read not too long ago from somebody who says, really, I like the open call forums and nano call forums and stuff. And there's somebody in open call on Reddit that was like, ah, this thing has been amazing for me. It's been buying my groceries for four months until last week. And then it bought 50 pounds of garlic. Whenever it had done, it had gone off and, you know, hallucinated like a multiple of times, 10 or times 100 or something. And things like that's a very innocuous example, but you then imagine applying that to like, I don't know, your Bitcoin wallet or your bank account or your company's CRM data or actually things get bad very, very quickly. So this problem of

making sure that you are still not doing incorrect or silly things, letting your agent have access to things that you under common sense wouldn't let it have access to. I think that's still the, I don't want to overpromise people. And I don't want people to take dependencies on us thinking, ah, you'll keep my bank account safe for my agent ever doing anything. Like, well, we can help. We can give you a very bounded way. But at the end of the day, you still need to make good choices for the totality of the threat model around your data and your stuff. So we are working on these things. I think we have a very ambitious roadmap for the next couple of years, I think for minimum, but it's not there now. I don't think anybody's there now.

No, I mean, shared responsibility model is pretty common here. And I always like that term. It's just a fancy way of basically saying, don't do really stupid stuff, user. We can't be responsible for the really, really stupid stuff. So yeah, we can't solve everything. So yeah, exactly. I think that's exactly the right term. No matter what we do, there will always be a shared responsibility model. We can do more, but I think that will universally be true. Yeah, absolutely. One thing you touched on a bit earlier, and does sort of come into this, I'm just curious to get a little bit more detail on is the secrets and credentials piece. Again, how does that work? I think you've mentioned proxies being part of the solution here, but how does sort of knowing that credentials aren't somehow being stored somewhere or repurposed or anything like that?

It's hard without, if we had whiteboards and pictures and stuff, it'd be a lot easier. But you'd imagine, think of the things as what goes in the box and what stays out of the box. At the end of the day, what stays out of the box are the secrets. And what goes in the box is a placeholder that looks and acts to the thing inside like it's a secret, but it's not a real one. So the threat model there, it's a little bit blurry and it's nuanced. The threat model there is, well, it's impossible to leak your secret. So at least per this contract, the secret is never presented in the box. Nothing in the box can ever get it. However, that placeholder secret still has, by definition, access to things. What we literally do is we run a proxy on the outside that intercepts traffic and we'll swap out your, for example,

If you put a secret in as like your Anthropic API key, what does it literally do? It looks like a bearer token in the authorization header. And every time the cloud agent makes a call to Anthropic.com, it sets authorization header colon and then stacks in that key that's like SK dash blah, blah, blah, blah, blah, blah. So we put a fake one in and the call will go out and then we will intercept it and we'll say, ah, you put that key in the box. I'm going to take that key out. I'm going to put the real key in and I'm going to send it off to Anthropic. And when the call comes back, I will conversely strip and sanitize the things on the backside and I'll give it back inside the box. The box is none the wiser. It's a good thing. We're literally man in the middle in a healthy way.

Now the threat, so the good thing is your secret can never be leaked. Nobody, you can never take that secret and send it out. You can't take your AWS keys. You can't take your bank account keys. You can't, the agent could never take them and go post them to Pacebin or something like that. That can't happen. However, the agent does have access to the same service behind the scenes because by definition, we're still letting the call through. We're just keeping the secret out. So the agent could still go, for example,

Well, if it has your bank account, it doesn't have your bank account keys, but it could still transfer money for you. By definition, we're not able to stop that, at least not today. So that's kind of the nuance on the threat model there. So, you know, the agent will still have access to the things it has access to. And then mostly you bound, when you revoke a credential, you will then be able to immediately contain the damage, but the damage will still have been done. So. Yeah. One thing I haven't, I guess, asked or touched on is, I guess, all of SBX, is that all open source as well? Is that something it's like? It is a lot of open source. It's not 100% open source. So the core VM today, we've chosen not to for a couple of reasons. One, there's competitive and commercial things, but putting that aside, actually.

We're not right now trying to go get a community of people to go contribute to it. It's very hardcore systems technology. And honestly, we actually, I'm curious if you've had others on the podcast. We might be, hypothetically speaking, drowning in AI pull requests from everywhere else across the industry. Yeah, yeah. We are hearing a lot of that. Yeah. Yeah. And so we're trying to go fast. We're trying to solve a lot of problems. I'm not terribly interested right now in dealing with it all. We're already dealing with it in a bunch of the places where, I mean, Docker is, to be clear, I want to say this. Docker is a very open source friendly company. We're an entire ethosist company. Our intent is to be open source. We are trying to make pragmatic choices as we go around it. But the answer to your question is today, it is not 100% open source. There's a lot of open source, but there are parts of it that are not. And various reasons why. It is all free, however. Yeah. No, that's amazing.

let's let's talk about this dogfooding thing like it was i think it was a blog post by one of your colleagues that sort of went through this a little bit and it's called the fleet but which sort of explains but maybe you could sort of semi-summarize like what is this how i guess is docker dogfooding that term of like you know trying your own products basically when in this case like i think stress testing it how has that actually worked well one i philosophically deeply believe every company should dog food their things they don't dog food their things what are you doing so the funny thing the nuance for us is not 100 of the company can dog food because we have a lot of people that work on this core thing itself and putting nested virtualization and gets actually very hard so we have a funny dichotomy of who can dog food and who cannot on a daily basis. Because maybe the definition of dog food to me is I want most of the company living their lives in our products. And they do exactly what our customers do. We have some constraints where it's literally not possible because they're building it. But the things that have been incredibly helpful for us, because we find a lot of the friction and the same things, we have a lot of things we need to work on that make it better and more usable and all the rest. But typically speaking, we will find a lot of things for our customers to do. But the better question besides me to ask this question to is actually our CISO, who I think is like elated that we've moved our organization as much as possible to where all things run inside the sandbox for exactly the same reasons that our customers are calling us for. So today we dog food SBX most people that are running a coding agent.

need to do so inside of SBX. Again, there are exceptions. As I mentioned, we have an MCP gateway as well that goes hand in hand with this. We stand up an internal one for ourselves in enterprise. We run all the things we, as a company, use as an MCP through that. And then I've mentioned this a little bit. We have a teaser of a cloud and some higher level products coming. We've got a whole lot of our company actually building our agent orchestration around that. So if you think about the way the SDLC works is, okay, the human sitting there interacting with their cloud code terminal does their work day in, day out. We're probably like everybody else where most of the engineers like cloud code the best. Some people love open code. Some people love codecs. We let people do what they want on their things of choice.

But then you have a lot of things that can run in the background and so it can actually be scaled out. So we do have a lot of autonomous agents that run either by because they're tagged in a pull request or they literally run and watch. They're just set up with GitHub triggers or Git triggers and watch the repo, look for security scans, look for test coverage patterns, like all the common stuff you'd expect. And then they'll go either generate new issues and give things to people or they'll actually generate all the way to the code and like reissue a new pull request. Today, we're not all the way to the point where we're letting a lot of things through without a human review because mostly we have a security product where...

The contract is determinism, so we kind of philosophically don't do that. We go back and forth on this all the time, like on a weekly basis. But that contract looks like then what most of the engineering organization, product organization works with. And then you also have everybody that has automated their life where they have daily reports and this, that, and the other thing. Now, the one we're working on actually kind of aggressively is actually getting our go-to-market and our G&A teams working with the same stack in dogfooding. The product as is is very much, I mean, Docker's a developer company. We're built for developers. The product is for developers who go do stuff. But it turns out a whole lot of people are learning to code or learning to, like, it's this funny thing now. Well, everybody's a developer now. Your definition of developer here.

And so what we're actually working through right now is, okay, how do we effectively dog food our own products and our non-engineering and product organizations? That's kind of the last untapped frontier for us in terms of how that's going. Yeah. So that's a very holistic approach to dog fooding from what you've just described. So that's great to hear. As we sort of start to vaguely sort of cruise to the end of the episode, I'm curious about the future of this. And you have touched on it a little bit, like the sort of the hosted piece to this, because that was going to be one of my first questions. Like, is this only going to be local or what does it maybe look like in the future?

You have touched on a hosted idea without me revealing anything you can't today. But what would be the reasons, I guess, for offering a fully hosted version of this? I'm not terribly secretive with a roadmap because I think it's honestly, I always kind of joke like, well, if you can't look at a company, write down the roadmap in about 20 minutes of thinking, they probably have the wrong roadmap. So for us, doing a hosted version and a cloud version is, I think, incredibly important because, again, there's many reasons why I... need a cloud. So many times I want to work on my laptop. I need access to Excel files. I need access to local things. I want access to local resources. And there's many times, well, I want to close my laptop and I want to go to sleep or I want to be on an airplane and I want stuff to keep going, which case I need to go back and forth. Our term for this is remote goal. So our cut on this is, well, this SBX contract that you have will be able to move portably back and forth from the laptop to the cloud. That's kind of the big thing we're working on, along with the, again, traditional sort of scale out cloud resources for, you know, the cases you'd expect. So getting that working, I think, unlocks just a whole lot of things for people, whether it's background agents or agent swarms or whatever it is. That's like a big one. We're really working on that sort of, well, now you're back to like, why?

laptop. I think many things actually need access to the laptop that are like, oh, say the microphone or the camera or again, Excel files or whatever else it is. And so really working on kind of safely constrained access to host resources above and beyond what we've done. Like we already have a bunch of special things in for GPUs and things like that, but sort of general purpose access to how agents can do what's called computer use is I think one of the bigger things we're working on. we are i think i've long been the like top evangelist for open models and so i think one of the big investments for us will be just making sure this keeps working with allow you to plug in and swap in open models i think the year of open models is upon us already and it's coming faster definitely i think that's incredibly important and then again a huge focus for us really is on this team and commercial governance product and so just doing a whole lot more there around the richness of policy that can be expressed how exactly agent identity works and like delegated ways and step down ways it's a very rich and complex domain and so most of the customer asks and the usage as we see in practice beyond hey i'm trying to work in a little world why didn't this agent work really very quickly turn into that, which is, okay, well, I'm trying to roll this out to 1,000, 10,000 people, and I have this very complicated thing, and I need to talk to that SSO system and that access control system, but I need the agents to do this then, now. Like, that's, I think, what we're, I think we're gonna be busy for a while working on that. But I think the nice thing is, as we build this for the comp, as an ethos, making the hard things possible and solving the complex problems in a way that is easy and digestible allows us to, I think, have a platform that will work for everybody, because our, for us, the part of the goal is great. We have Docker, we have probably a billion people running Docker somewhere, somehow across the, like, I don't even know, I can't count it all.

I think we have a responsibility to make sure that the ecosystem and community of Docker users is able to come forward into the world of AI and making sure that everything we do provides them the same sort of safety uplift and the same sort of convenience uplift is actually important to us. It's just an ethos. We have a ton of work to go do to solve problems for the companies that are having real pain points on, I mean, everybody's scrambling, right? It's like, well, I was told I need to roll out Claude, but either because the people in my company are screaming at me that they need it or because, you know, the board is screaming, I'd be everybody screaming, I need to roll it out. And it's hard. How do I roll this out with safety? How do I not risk the business and so on? Our whole lot of roadmap focuses on...

enabling that with more and more and more expressive controls and then making sure it's accessible to everybody so that's the digest radio safe version of the roadmap so yeah that's awesome something i was just thinking there was is there a world obviously i don't expect this to be on the roadmap even in like maybe the next year but is there a world where you could see for example docker sandboxes running on mobile devices as opposed to a laptop developers love showing off that they've been doing something on their phone which is currently sshed into some other box somewhere but what do you see on this one Is it in the next quarter? No. We've talked about it. It comes up. We're Docker. It's a ubiquitous runtime that runs everywhere. We get asked for everything. We get asked to put it on thermostats. We get asked to put it on cell phones. I don't think it's out of the question. In particular, I think the mobile case.

Obviously, the sandboxing primitives, the operating system primitives, everything about that is totally different. But having some type of an experience, like again, where I can give you the, it's actually less about the sandbox and more about the safety. So I think it is in bounds for us to say, well, I'm giving you this portable run, runs, run anywhere contract that you can run to safety and speed and productivity. Having an answer for that on the mobile phone, I think is actually probably inevitable for us. I think it'll probably require us doing a different shape and it won't look like, oh, I brought SBX to the phone as is. I think it'll require us being, okay, understand the constraints of the environment, understand the problem we're trying to solve, stick to the ethos, make it as coherent as we possibly can across this. But I would not rule that out, that's for sure.

Yeah, that makes sense. Not ruled out, but equally, I love that phrase. I think it was, well, I don't know who said it originally, but I remember hearing Toby Luque say, it's like, when you say yes to something, you're effectively saying no to everything else. So what you say yes to, you know, you've got to be very, very clear on that one. That is a roadmap effectively.

Yeah, there's a great Steve Jobs quote. It's like, focus is not saying yes, focus is saying no. And so it's not a no forever, but it is a no for right now. Yeah. Well, just to recap, where's the sort of best place for a developer to go get up and running with SBX? I mean, easy one as well. You should go to docker.com and there's docker.com slash sandboxes. But if you're on Mac, you can do brew install SBX and win get on Windows. And so your Linux distribution of choice for your installers. So, but I start there and then it is usually pretty quick to get to Hello World and get to your first agent being up and running. And then it's a world of threat models and virtual machines and agent controls from there.

amazing well mark thank you so much really appreciate you making the time and yeah i think i think this will be one where we're following along pretty closely and no doubt catch up in a year or two that'd be great thanks for having me thank you

Frequently asked questions

How long is this episode of Software Engineering Daily?

This episode is 50 minutes long.

When was this Software Engineering Daily episode published?

This episode was published on July 30, 2026.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this Software Engineering Daily episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.