Skip to content

Your lightweight open-source personal agent.

docs(configuration): align Docker env-file example

Xubin Renf017e209da1e
diff --git a/docs/configuration.md b/docs/configuration.md
index f9e116bd1..b5d74f7ca 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -87,10 +87,12 @@ TELEGRAM_TOKEN=your-token-here
IMAP_PASSWORD=your-password-here
```
-**Docker** — `--env-file` (one `KEY=VALUE` per line) or `-e KEY=value`:
+**Docker** — pass an env file to the locally built image (one `KEY=VALUE` per line), or use `-e KEY=value`:
```bash
-docker run --env-file=./nanobot.env nanobot/nanobot
+docker run --rm --env-file=./nanobot.env \
+ -v ~/.nanobot:/home/nanobot/.nanobot \
+ nanobot agent -m "Hello"
```
**direnv** — drop a `.envrc` in your working directory and run `direnv allow`: