@@ -4,8 +4,19 @@ Docker container for PyRIT with support for both **Jupyter Notebook** and **GUI*
44
55## Prerequisites
66- Docker installed and running
7- - ` .env ` file at ` ~/.pyrit/.env ` with API keys
8- - Optionally, ` ~/.pyrit/.env.local ` for additional environment variables
7+ - ` ~/.pyrit/.env ` with your API keys
8+ - ` ~/.pyrit/.pyrit_conf ` with your configuration (operator, operation, initializers)
9+ - Optionally, ` ~/.pyrit/.env.local ` for additional environment overrides
10+
11+ ## Azure Authentication in Docker
12+
13+ When deployed to ** Azure infrastructure** (AKS, ACI, Azure VM), managed identity
14+ works out of the box — no configuration needed. Assign the managed identity the
15+ ** Cognitive Services OpenAI User** role on your Azure OpenAI resources.
16+
17+ > ** Note:** Azure authentication for local Docker Desktop is not yet supported.
18+ > Local Docker is currently limited to targets that use API keys configured in
19+ > your ` .env ` file.
920
1021## Quick Start
1122
@@ -41,6 +52,11 @@ GUI mode (port 8000):
4152python docker/run_pyrit_docker.py gui
4253```
4354
55+ The run script automatically mounts these files from ` ~/.pyrit/ ` :
56+ - ` .env ` — API keys (required)
57+ - ` .env.local ` — Additional environment overrides (optional)
58+ - ` .pyrit_conf ` — PyRIT configuration: operator, operation, initializers (optional)
59+
4460## Image Tags
4561
4662Images are tagged with version information:
@@ -77,6 +93,9 @@ docker-compose --profile gui up
7793
7894** .env missing** : Create ` .env ` file at ` ~/.pyrit/.env ` with your API keys
7995
96+ ** Azure auth fails in container** : Local Docker Desktop does not currently support
97+ Azure token-based authentication. Use API key-based targets instead.
98+
8099** GUI frontend missing** : Build with ` --source local ` (PyPI builds before GUI release won't work)
81100
82101For complete documentation, see [ docker/README.md] ( ./README.md )
0 commit comments