{"id":2913,"date":"2025-11-25T15:10:32","date_gmt":"2025-11-25T15:10:32","guid":{"rendered":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/2025\/11\/25\/docker-sandboxes-a-new-approach-for-coding-agent-safety\/"},"modified":"2025-11-25T15:10:32","modified_gmt":"2025-11-25T15:10:32","slug":"docker-sandboxes-a-new-approach-for-coding-agent-safety","status":"publish","type":"post","link":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/2025\/11\/25\/docker-sandboxes-a-new-approach-for-coding-agent-safety\/","title":{"rendered":"Docker Sandboxes: A New Approach for Coding Agent Safety"},"content":{"rendered":"<p>Coding agents like Claude Code, Gemini CLI, Codex, Kiro, and OpenCode are changing how developers work. But as these agents become more autonomous (capable of deleting repos, modifying files, and accessing secrets), developers face a real problem: how do you give agents enough access to be useful without risking your local environment?<\/p>\n<h3 class=\"wp-block-heading\"><strong>Coding Agents Increase Productivity. And Risk.<\/strong><\/h3>\n<p>Today, development with coding agents means picking your poison:<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>YOLO Mode: <\/strong>Give agents full access to everything without any safeguards. It\u2019s productive until your agent wipes critical files or exposes API keys.<\/li>\n<li><strong>DIY VMs:<\/strong> Manually spin up and lock down virtual machines. You get security but lose hours managing permissions and rebuilding environments. The productivity gains you wanted from agents? Gone.<\/li>\n<\/ul>\n<p>We think developers need a better option. So we\u2019re experimenting with a solution that could give you both safety and productivity.<\/p>\n<h3 class=\"wp-block-heading\"><strong>What We\u2019re Building Towards: A More Effective Way to Run Local Coding Agents Safely.<\/strong><\/h3>\n<p>We\u2019re working on an approach that lets you run coding agents in purpose-built, isolated local environments. Docker Sandboxes wrap agents in containers that mirror your local workspace and enforce strict boundaries across all the coding agents you use. The idea is to give agents the access they need while maintaining isolation from your local system.<\/p>\n<p>Today\u2019s experimental release runs agents as containers inside Docker Desktop\u2019s DockerVM. This provides security through filesystem isolation and process containment. We\u2019re moving towards a microVM-based architecture for even stronger isolation and safety.<\/p>\n<h3 class=\"wp-block-heading\"><strong>What\u2019s Available Now (Experimental Preview).<\/strong><\/h3>\n<p>This is an experimental preview. Commands may change and you shouldn\u2019t rely on this for production workflows yet. But we\u2019re excited about where we\u2019re heading.\u00a0<\/p>\n<p>Here\u2019s what you get today:<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Container-based isolation:<\/strong> Agents can run code, install packages, and modify files within a bindmounted workspace directory.<\/li>\n<li><strong>Filesystem isolation<\/strong>: Process containment, resource limits, and filesystem scoping, protecting your local system.<\/li>\n<li><strong>Broad agent support<\/strong>: Native support for Claude Code and Gemini CLI, with more coding agents support coming soon (Kiro CLI, Codex, Cline, OpenCode, and others).<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\"><strong>Why We Are Taking this Approach.<\/strong><\/h3>\n<p>OS-level sandboxing approaches like Linux Bubblewrap or macOS seatbelt have significant limitations:<\/p>\n<ul class=\"wp-block-list\">\n<li>They rely on rigid, pre-declared policy files that break with dynamic agent behaviors (runtime code generation, interactive outputs, on-the-fly library installations). In practice, this means constantly interrupting workflows with permission prompts.<\/li>\n<li>They don\u2019t work across all platforms (Bubblewrap won\u2019t run on macOS or Windows).<\/li>\n<li>Multiple enterprise security teams have told us they won\u2019t accept seatbelt-based solutions.<\/li>\n<\/ul>\n<p>Container-based isolation is designed for exactly the kind of dynamic, iterative workflows that coding agents need. You get flexibility without brittleness.<\/p>\n<p>We\u2019re taking a usability-first approach. Rather than trying to be a great solution for all kinds of AI out of the box, we\u2019re focusing specifically on coding agents. This lets us solve real developer problems and deliver a great experience. We\u2019ll support other use cases in the future, but for now, coding agents are where we can make the biggest impact.<\/p>\n<h3 class=\"wp-block-heading\"><strong>Here\u2019s How You Can Try It.<\/strong><\/h3>\n<p>Today\u2019s experimental preview works natively with Claude Code and Gemini CLI. We\u2019re building for other agents developers use.<\/p>\n<p>With Docker Desktop 4.50 and later installed, run: <code>docker sandbox run &lt;agent&gt;<\/code><\/p>\n<p>That\u2019s it. Your agent runs in an isolated environment and you stay productive.\u00a0<\/p>\n<h3 class=\"wp-block-heading\"><strong>What\u2019s Next.<\/strong><\/h3>\n<ul class=\"wp-block-list\">\n<li>Better support and UX for running multiple agents in parallel<\/li>\n<li>Granular network access controls<\/li>\n<li>Granular token and secret management for multi-agent workflows<\/li>\n<li>Centralized policy management and auditability<\/li>\n<li>MicroVM-based isolation architecture<\/li>\n<li>Support for additional coding agents<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\"><strong>Try It and Share Your Feedback.<\/strong><\/h3>\n<p>We\u2019re building this alongside developers. As you experiment with Docker Sandboxes, we want to hear about your use cases and what matters most to your workflow.<\/p>\n<p>Send your feedback to: <a href=\"https:\/\/www.docker.com\/blog\/docker-sandboxes-a-new-approach-for-coding-agent-safety\/coding-sandboxes-feedback@docker.com\">coding-sandboxes-feedback@docker.com<\/a><\/p>\n<p>We believe sandboxing should be how every coding agent runs, everywhere. This is an early step, and we need your input to get there. We\u2019re building toward a future where there\u2019s no compromise: where you can let your agents run free while protecting everything that matters.\u00a0<\/p>","protected":false},"excerpt":{"rendered":"<p>Coding agents like Claude Code, Gemini CLI, Codex, Kiro, and OpenCode are changing how developers work. But as these agents [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":94,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2913","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/posts\/2913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/comments?post=2913"}],"version-history":[{"count":0,"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/posts\/2913\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/media\/94"}],"wp:attachment":[{"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/media?parent=2913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/categories?post=2913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/tags?post=2913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}