# How to Run SQL Server Outside Docker Sandboxes

DevFeed: [How to Run SQL Server Outside Docker Sandboxes](<https://devfeed.tech/articles/how-to-run-sql-server-outside-docker-sandboxes-90003.md>)

Original publisher: [Read original article](<https://spin.atomicobject.com/sql-server-outside-sandboxes/>)

Author: John Ruble

Published: 2026-10-19T12:00:34Z

Content type: tutorial

Language: en

Sources: [Atomic Object](<https://devfeed.tech/sources/atomic-object.md>)

Topics: [sql-server](<https://devfeed.tech/topics/sql-server.md>), [Docker Sandboxes](<https://devfeed.tech/topics/docker-sandboxes.md>)

Tags: [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-for-developers](<https://devfeed.tech/tags/ai-for-developers.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [docker](<https://devfeed.tech/tags/docker.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [sql](<https://devfeed.tech/tags/sql.md>)

## AI overview

The tutorial connects Claude Code agents in Docker Sandboxes to a shared SQL Server running on the host when the database image cannot run inside the sandbox. It uses socat to forward localhost connections, an outbound network allowlist to restrict access, and AGENT_NAME database suffixes to isolate each sandbox's tests. Agent guidance explains how to access the external database without attempting to start another server.

## Source excerpt

Like many of my colleagues, I've been experimenting with tooling around sandboxed agents. Lately for me this looks like a handful of Claude Code agents, each in an isolated Docker sbx. Today I'm going to share what it took to give them access to a test database. SQL Server and Docker sbx My current project, [...] The post How to Run SQL Server Outside Docker Sandboxes appeared first on Atomic Spin.