Merge #16343: force HTTP/1.1 for buildx copies to the embedded registry

Community fix for https://github.com/Security-Onion-Solutions/securityonion/issues/16342 by @Morochief.
This commit is contained in:
reyesj2 committed 2026-11-20 16:47:03 -06:00
commit 303fefe84d
1 file changed
+7 -1
+7 -1
View File
@@ -205,7 +205,13 @@ update_docker_containers() {
echo "Unable to determine verified digest for $image" >> "$LOG_FILE" 2>&1
exit 1
fi
docker buildx imagetools create --tag $HOSTNAME:5000/$IMAGEREPO/$image "$VERIFIED_REF" >> "$LOG_FILE" 2>&1 || {
# Force HTTP/1.1 for Go runtime clients (docker buildx) to prevent HTTP/2
# stream multiplexing drops (PROTOCOL_ERROR) on large image layer uploads
# to the local embedded registry.
export GODEBUG="http2client=0${GODEBUG:+,${GODEBUG}}"
docker buildx imagetools create --tag $HOSTNAME:5000/$IMAGEREPO/$image "$VERIFIED_REF" >> "$LOG_FILE" 2>&1 || \
docker push $HOSTNAME:5000/$IMAGEREPO/$image >> "$LOG_FILE" 2>&1 || {
echo "Unable to copy $image to embedded registry" >> "$LOG_FILE" 2>&1
exit 1
}