Skip to content

Commit

Permalink
Make sure image IDs are sorted to make them unique
Browse files Browse the repository at this point in the history
  • Loading branch information
agners committed Nov 30, 2023
1 parent e2c70b6 commit 1081b97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if [ -f "${SUPERVISOR_STARTUP_MARKER}" ]; then
SUPERVISOR_CONTAINER_ID=""

# Make sure we delete all supervisor images
SUPERVISOR_IMAGE_IDS=$(docker images --no-trunc --filter "reference=${SUPERVISOR_IMAGE}" --format "{{.ID}}" | uniq || echo "")
SUPERVISOR_IMAGE_IDS=$(docker images --no-trunc --filter "reference=${SUPERVISOR_IMAGE}" --format "{{.ID}}" | sort | uniq || echo "")
# Intended splitting of SUPERVISOR_IMAGE_IDS
# Busybox sh doesn't support arrays
# shellcheck disable=SC2086
Expand Down

0 comments on commit 1081b97

Please sign in to comment.