fix error message after build (#263), improve readme (#266)

This commit is contained in:
h44z
2025-12-09 22:04:28 +01:00
committed by GitHub
parent 5387d1803d
commit 31a08b7e89
2 changed files with 3 additions and 1 deletions

View File

@@ -74,9 +74,11 @@ You may now simply create the file `/path/to/bwdata/docker/docker-compose.overri
services:
api:
image: bitbetter/api
pull_policy: never
identity:
image: bitbetter/identity
pull_policy: never
```
You'll also want to edit the `/path/to/bwdata/scripts/run.sh` file. In the `function restart()` block, comment out the call to `dockerComposePull`.

View File

@@ -64,5 +64,5 @@ docker tag bitbetter/api bitbetter/api:$BW_VERSION
docker tag bitbetter/identity bitbetter/identity:$BW_VERSION
# Remove old instances of the image after a successful build.
ids=$( docker images bitbetter/* | grep -E -v -- "CREATED|latest|${BW_VERSION}" | awk '{ print $3 }' )
ids=$( docker image ls --format="{{ .ID }} {{ .Tag }}" 'bitbetter/*' | grep -E -v -- "CREATED|latest|${BW_VERSION}" | awk '{ ids = (ids ? ids FS $1 : $1) } END { print ids }' )
[ -n "$ids" ] && docker rmi $ids || true