mirror of
https://github.com/usetrmnl/trmnlp.git
synced 2026-08-13 14:27:33 -07:00
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:
@@ -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"
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
services:
|
||||
trmnlp:
|
||||
image: trmnl/trmnlp:latest
|
||||
pull_policy: always
|
||||
command: ["serve"]
|
||||
ports:
|
||||
- "4567:4567"
|
||||
|
||||
Reference in New Issue
Block a user