scripts/dockerenv: fix docker images compatbility
What changed, and why it matters
This is a one-line build-script fix. A newer Docker version changed the default text output of the `docker images` command, which broke a simple check that looks for a locally available Docker image. The fix forces the old tabular output format so the existing grep check works again. There is no security issue here—just preventing a false 'image not found' error during development.
No security action needed. This is a routine build-tooling compatibility fix; merge as normal.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The dockerdev function in scripts/dockerenv.sh checks whether a required container image is present by running $RUNTIME images --filter reference=... | grep .... Recent Docker CLI versions default docker images output to a human-readable format that no longer matches the expected columns/whitespace, causing the grep to fail even when the image exists. The patch adds --format table to restore the legacy table output and make the check reliable again.
Changed components
scripts/dockerenv.shInspect captured patch +1 / −1
diff --git a/scripts/dockerenv.sh b/scripts/dockerenv.sh
index 30b442c..936d46d 100755
--- a/scripts/dockerenv.sh
+++ b/scripts/dockerenv.sh
@@ -40,7 +40,7 @@ CONTAINER_NAME="$PROJECT_NAME-$CONTAINER_NAME_SUFFIX"
dockerdev () {
local repo_path="$DIR/.."
- if ! $RUNTIME images --filter "reference=${CONTAINER_IMAGE}" | grep -q "${CONTAINER_IMAGE} *${CONTAINER_VERSION}"; then
+ if ! $RUNTIME images --filter "reference=${CONTAINER_IMAGE}" --format table | grep -q "${CONTAINER_IMAGE} *${CONTAINER_VERSION}"; then
echo "No '${CONTAINER_IMAGE}:${CONTAINER_VERSION}' ${RUNTIME} image found! Maybe you need to run
'${RUNTIME} pull ${CONTAINER_IMAGE}:${CONTAINER_VERSION}'?" >&2
exit 1
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.