Skip to content

Commit

Permalink
fix: Support docker build output for Docker Desktop v4.31
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Bobulsky <[email protected]>
  • Loading branch information
RulerOf committed Jul 2, 2024
1 parent 057465d commit 355bb2a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/kitchen/docker/helpers/image_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ def parse_image_id(output)
img_id = line.split(/\s+/).last
return img_id
end
# Docker ~v4.31 support
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]
return img_id
end
end
raise ActionFailed, "Could not parse Docker build output for image ID"
end
Expand Down

0 comments on commit 355bb2a

Please sign in to comment.