From f017e209da1ed512ee4f352040e512fbc6e65ddb Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Mon, 18 May 2026 00:37:01 +0800 Subject: [PATCH] docs(configuration): align Docker env-file example --- docs/configuration.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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`: