Skip to content

fix: Support docker build output for Docker Desktop v4.31 - #423

Merged
damacus merged 1 commit into
test-kitchen:mainfrom
RulerOf:fix_docker_desktop_4.31
Nov 8, 2025
Merged

fix: Support docker build output for Docker Desktop v4.31#423
damacus merged 1 commit into
test-kitchen:mainfrom
RulerOf:fix_docker_desktop_4.31

Conversation

@RulerOf

@RulerOf RulerOf commented Jul 31, 2024

Copy link
Copy Markdown
Contributor

Description

Add image build parser that works for Docker Desktop v4.31.0

Issues Resolved

resolves #419

Type of Change

fix

Check List

Signed-off-by: Andrew Bobulsky <rulerof@gmail.com>
@damacus damacus mentioned this pull request Mar 17, 2025
3 tasks
@damacus
damacus requested a review from Copilot November 8, 2025 23:56
@damacus
damacus merged commit 511e4ad into test-kitchen:main Nov 8, 2025
4 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for parsing Docker image IDs from Docker v4.31 build output. The new version of Docker outputs image IDs in a different format using "naming to moby-dangling@..." instead of the previously supported "writing image..." format.

  • Adds a new regex pattern to parse Docker v4.31 output format
  • Maintains backward compatibility with existing Docker output formats

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +39 to +40
if line =~ /naming to moby-dangling@(sha256:[[:xdigit:]]{64})(?: \d*\.\ds)? done/i
img_id = line[/naming to moby-dangling@(sha256:[[:xdigit:]]{64})(?: \d*\.\ds)? done/i, 1]

Copilot AI Nov 8, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The regex pattern /naming to moby-dangling@(sha256:[[:xdigit:]]{64})(?: \d*\.\ds)? done/i is duplicated on consecutive lines. Consider extracting it to a variable to improve maintainability and performance. For example: pattern = /naming to moby-dangling@(sha256:[[:xdigit:]]{64})(?: \d*\.\ds)? done/i then use if line =~ pattern and img_id = line[pattern, 1].

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker build output parsing broken on recent Docker Desktop

3 participants