From 58ce939c4055764cfd4ae30112c8e547c92a98ae Mon Sep 17 00:00:00 2001 From: Kevin Baensch Date: Wed, 18 Jan 2023 09:24:05 +0100 Subject: [PATCH] Fix Container Diffing --- script/hostman.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/hostman.sh b/script/hostman.sh index 971f593..f7dd1c8 100755 --- a/script/hostman.sh +++ b/script/hostman.sh @@ -17,7 +17,7 @@ query_docker () { update_templates() { CONTAINER_LIST=$(query_docker "containers/json" "?filters={%22network%22:[%22${NETWORK_NAME}%22],%22status%22:[%22running%22]}") - LABELS_NEW="$(echo "${CONTAINER_LIST}" | jq '.[].Labels | @base64' | sort)" + LABELS_NEW="$(echo "${CONTAINER_LIST}" | jq '.[].Labels | to_entries | map(select(.key | startswith("local.")) | .key + .value) | sort | .[] | @base64')" if [ "${LABELS_NEW}" != "${LABELS_OLD}" ] then if [ -n "${LABELS_OLD}" ]