---
title: "Discussion on \"Your AI coding agent's dev container is not a sandbox: docker.sock, --privileged and ~/.ssh mounts\" | Hashnode"
description: "Discussion on \"Your AI coding agent's dev container is not a sandbox: docker.sock, --privileged and ~/.ssh mounts\". Running Claude Code, Codex or Aider in a dev container feels safe, until the container gets privileged mode, the host Docker socket, the host network or your ~/.ssh and ~/.aws folders. Here is what the Docker and Dev Container docs say about each setting, how to fix them, and BoxEscape, a free VS Code extension that flags them in devcontainer.json, Compose files and docker run scripts."
url: "https://hashnode.com/posts/boxescape-devcontainer-docker-sock-ai-agent-sandbox/6ae411027f0f5a17e833e5b5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Your AI coding agent's dev container is not a sandbox: docker.sock, --privileged and ~/.ssh mounts](https://jaytank.hashnode.dev/boxescape-devcontainer-docker-sock-ai-agent-sandbox?utm_source=hashnode&utm_medium=feed)

Running Claude Code, Codex or Aider in a dev container feels safe, until the container gets privileged mode, the host Docker socket, the host network or your ~/.ssh and ~/.aws folders. Here is what the Docker and Dev Container docs say about each setting, how to fix them, and BoxEscape, a free VS Code extension that flags them in devcontainer.json, Compose files and docker run scripts.

Oct 30 · 10 min read · jaytank.hashnode.dev  
Read the article

-   [#docker](https://hashnode.com/tag/docker)
-   [#security](https://hashnode.com/tag/security)
-   [#devops](https://hashnode.com/tag/devops)
-   [#vs-code](https://hashnode.com/tag/vs-code)
-   [#ai](https://hashnode.com/tag/ai)

## Written by

[JAY TANK](https://hashnode.com/@jaytank)

@jaytank

  
[View profile](https://hashnode.com/@jaytank)

Engineering insights on building and scaling modern software.

Cloud &amp; Platform Engineer focused on building systems that scale and endure. I explore how infrastructure, automation, and engineering practices come together to support modern software teams.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
