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}" ]