Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
YouTube Security VideosMeet “Cristina,” the Simulator | The Atlassian Williams F1 Team Pack(01.10.2026 um 06:00 Uhr)
•
YouTube Security VideosMeet "Alex", The Optimizer | The Atlassian Williams F1 Team Pack(01.10.2026 um 06:00 Uhr)
•
YouTube Security VideosMeet "Cleo", The Predictive Fixer | The Atlassian Williams F1 Team Pack(01.10.2026 um 06:00 Uhr)
•
YouTube Security VideosMeet "Carlos", The Decision Driver | The Atlassian Williams F1 Team Pack(01.10.2026 um 06:00 Uhr)
•
YouTube Security VideosMeet “James,” the Northstar | The Atlassian Williams F1 Team Pack(01.10.2026 um 06:00 Uhr)
•
YouTube Security VideosAtlassian: The fastest way forward is knowing where you’ve been.(01.10.2026 um 06:00 Uhr)
•
YouTube Security VideosMicrosoft Copilot: Meet Home in Copilot(01.10.2026 um 03:04 Uhr)
•
Videos & KonferenzenAuree Joins MariaDB Foundation as Sponsor(01.10.2026 um 05:32 Uhr)
•
KI & AI VideosJulian Goldie SEO: New Claude Code Update is ABSURD!(01.10.2026 um 04:00 Uhr)
•
KI & AI VideosJulian Goldie SEO: Gemini 4 Argon: Google's New AI Model(01.10.2026 um 04:46 Uhr)
•
YouTube Security VideosMeet “Cristina,” the Simulator | The Atlassian Williams F1 Team Pack(01.10.2026 um 06:00 Uhr)
•
YouTube Security VideosMeet "Alex", The Optimizer | The Atlassian Williams F1 Team Pack(01.10.2026 um 06:00 Uhr)
•
YouTube Security VideosMeet "Cleo", The Predictive Fixer | The Atlassian Williams F1 Team Pack(01.10.2026 um 06:00 Uhr)
•
YouTube Security VideosMeet "Carlos", The Decision Driver | The Atlassian Williams F1 Team Pack(01.10.2026 um 06:00 Uhr)
•
YouTube Security VideosMeet “James,” the Northstar | The Atlassian Williams F1 Team Pack(01.10.2026 um 06:00 Uhr)
•
YouTube Security VideosAtlassian: The fastest way forward is knowing where you’ve been.(01.10.2026 um 06:00 Uhr)
•
YouTube Security VideosMicrosoft Copilot: Meet Home in Copilot(01.10.2026 um 03:04 Uhr)
•
Videos & KonferenzenAuree Joins MariaDB Foundation as Sponsor(01.10.2026 um 05:32 Uhr)
•
KI & AI VideosJulian Goldie SEO: New Claude Code Update is ABSURD!(01.10.2026 um 04:00 Uhr)
•
KI & AI VideosJulian Goldie SEO: Gemini 4 Argon: Google's New AI Model(01.10.2026 um 04:46 Uhr)
•
Intelligence View
⚡ tsecurity.de Intelligence

Running Claude Code with Docker

A beginner-friendly setup for private, on-device coding agents Modern AI coding tools are powerful—but many developers don’t want their source code leaving the…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!

A beginner-friendly setup for private, on-device coding agents



Modern AI coding tools are powerful—but many developers don’t want their source code leaving their machine. The good news is that Claude Code can run entirely locally, powered by Docker.



This guide shows how to connect Claude Code to Docker Model Runner so you can use a local language model for agentic coding, with minimal setup and full control over your data.









What This Setup Does



Instead of sending prompts to a hosted API, Claude Code talks to a local model running inside Docker.



High-level flow:




Claude Code (terminal)
↓
Docker Model Runner
↓
Local LLM container






Your repository stays local. No API keys required.









Prerequisites



Make sure you have:




  • Docker Desktop installed and running

  • Claude Code installed on your system

  • At least 16 GB of RAM (recommended)









Step 1: Install Claude Code






macOS / Linux






curl -fsSL https://claude.ai/install.sh | bash









Windows (PowerShell)






irm https://claude.ai/install.ps1 | iex






Verify installation:




claude --version












Step 2: Enable Docker Model Runner



Docker Model Runner lets Docker pull, run, and serve large language models locally.



If you’re using Docker Desktop, enable TCP access:




docker desktop enable model-runner --tcp






Once enabled, the local API will be available at:




http://localhost:12434






You only need to do this once.









Step 3: Pull a Local Model



Download a model using Docker’s model CLI. For example:




docker model pull gpt-oss






List available models:




docker model ls












Step 4: Increase the Context Window



For real-world repositories, a larger context window helps significantly.



Create a new model variant with a bigger context (example: 32K tokens):




docker model package   --from ai/gpt-oss   --context-size 32000   gpt-oss:32k






This creates a new tagged model without modifying the original.









Step 5: Connect Claude Code to Docker



Claude Code supports custom API endpoints via an environment variable.



Run Claude Code like this:




ANTHROPIC_BASE_URL=http://localhost:12434 claude --model gpt-oss:32k "Summarize this repository."






Claude Code now sends all requests to your local Docker model.









Step 6: Make the Setup Persistent



To avoid setting the environment variable every time, add it to your shell profile.




# ~/.bashrc or ~/.zshrc
export ANTHROPIC_BASE_URL=http://localhost:12434






Now you can simply run:




claude --model gpt-oss:32k "Explain the main service logic."












Optional: Inspect Claude Code Requests



You can inspect the raw requests sent by Claude Code:




docker model requests --model gpt-oss:32k | jq .






This is useful for debugging, learning prompt structure, and understanding how agentic coding tools work.









Why Run Claude Code Locally?




  • Full control over your source code

  • No API keys or usage-based billing

  • Offline-friendly development

  • Reproducible setup with Docker

  • Custom models and context sizes









Next Steps




  • Try different local coding models

  • Tune context size for large repositories

  • Pair with Docker sandboxes for safe execution

  • Use this setup as a foundation for custom coding agents



Happy hacking 🚀

2. Cyber Threat Intelligence & Forensik

CTI Threat Relationship Graph4 Knoten / 3 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
MITRE ATT&CK Matrix Navigator 14 Taktiken
1 belegte TechnikenLive-Mapping
Reconnaissance
Resource Development
Initial Access
Execution
Persistence
Privilege Escalation
Defense Evasion
Credential Access
Discovery
Lateral Movement
Collection
Command and Control
Exfiltration
Impact
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Running Claude Code with Docker

Thematisch verwandte Begriffe: Running, Claude, Code, with · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag