Updated Docker examples to always pull latest image

Necessary so users running `docker run trmnl/trmnlp ...` after a
release pick up the new image automatically instead of silently
running their cached one. `--pull always` checks the registry on
every run; `pull_policy: always` is the Compose equivalent.
This commit is contained in:
Ikraam Ghoor
2026-05-20 14:01:22 +01:00
parent 8fd6ea14c7
commit 5913bcdd87
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -203,11 +203,14 @@ trmnlp serve
```sh
docker run \
--pull always \
--publish 4567:4567 \
--volume "$(pwd):/plugin" \
trmnl/trmnlp serve
```
`--pull always` checks the registry on every run and pulls a newer image if one exists, so you don't have to remember to `docker pull` after each release.
Inside a container, `serve` binds to `0.0.0.0` automatically (it detects `/.dockerenv`) so the preview is reachable from your host browser. Outside Docker it binds to `127.0.0.1`.
Swap `serve` for any other command (`lint`, `login`, `clone`, etc.) to run it in a one-off container.
@@ -218,6 +221,7 @@ For running multiple commands (login, clone, serve), you can start an interactiv
```sh
docker run -it \
--pull always \
--publish 4567:4567 \
--volume "$HOME/.config/trmnlp:/root/.config/trmnlp" \
--volume "$(pwd):/plugin" \
@@ -244,6 +248,7 @@ For a checked-in config — like [`examples/hn-stories/`](examples/hn-stories/)
services:
trmnlp:
image: trmnl/trmnlp
pull_policy: always
command: ["serve"]
ports:
- "4567:4567"
+1
View File
@@ -9,6 +9,7 @@
services:
trmnlp:
image: trmnl/trmnlp:latest
pull_policy: always
command: ["serve"]
ports:
- "4567:4567"