Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build output parsing broken on recent Docker Desktop #419

Open
RulerOf opened this issue Jul 2, 2024 · 0 comments · May be fixed by #423
Open

Docker build output parsing broken on recent Docker Desktop #419

RulerOf opened this issue Jul 2, 2024 · 0 comments · May be fixed by #423

Comments

@RulerOf
Copy link
Contributor

RulerOf commented Jul 2, 2024

👻 Brief Description

Docker build output seems to have changed recently, and is no longer matching the regex being searched for by the driver.

Version

╰─❯ bundle list | grep kitchen-docker
  * kitchen-docker (3.0.0)

Environment

Mac OS Sonoma 14.5 (arm64)
Docker for Desktop Mac 4.31.0

Scenario

Building a container shows different output now, followed by an error:

       #29 exporting to image
       #29 exporting layers done
       #29 exporting manifest sha256:38ac64c142312dc709a8f1af6e509197e9f53f7932260368f2525447c8853f09 done
       #29 exporting config sha256:4ac6360adf560ee7cdca9ad14ff0a1d48054a7b88853158ce6e003e5f7eecd8f done
       #29 exporting attestation manifest sha256:8ad479b9243e884280bf63056e37db8ea72bc2c48cadfc6cd98054e5f9bc3872 done
       #29 exporting manifest list sha256:29814e7417354f45524c1c5b1985ff13ecde03c51e67237d27bba585d8cb47c9 done
       #29 naming to moby-dangling@sha256:29814e7417354f45524c1c5b1985ff13ecde03c51e67237d27bba585d8cb47c9 done
       #29 unpacking to moby-dangling@sha256:29814e7417354f45524c1c5b1985ff13ecde03c51e67237d27bba585d8cb47c9 done
       #29 DONE 0.0s

       View build details: docker-desktop://dashboard/build/default/default/tt5c9cdwafa1p9m1wgm94mig0
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Create failed on instance <clover-oraclelinux-8>.  Please see .kitchen/logs/clover-oraclelinux-8.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

Reviewing the log file (truncated):

╰─❯ less .kitchen/logs/clover-oraclelinux-8.log
I, [2024-07-02T10:04:41.959205 #95559]  INFO -- clover-oraclelinux-8: 8c819eced6d81ded1c07c42f77e72c745378d8f221ae6482edff915f4ebf03c5
I, [2024-07-02T10:04:42.104388 #95559]  INFO -- clover-oraclelinux-8: -----> Creating <clover-oraclelinux-8>...
E, [2024-07-02T10:04:43.021665 #95559] ERROR -- clover-oraclelinux-8: Create failed on instance <clover-oraclelinux-8>.
E, [2024-07-02T10:04:43.021750 #95559] ERROR -- clover-oraclelinux-8: ------Exception-------
E, [2024-07-02T10:04:43.021760 #95559] ERROR -- clover-oraclelinux-8: Class: Kitchen::ActionFailed
E, [2024-07-02T10:04:43.021767 #95559] ERROR -- clover-oraclelinux-8: Message: Could not parse Docker build output for image ID
E, [2024-07-02T10:04:43.021773 #95559] ERROR -- clover-oraclelinux-8: ----------------------
E, [2024-07-02T10:04:43.021779 #95559] ERROR -- clover-oraclelinux-8: ------Backtrace-------
E, [2024-07-02T10:04:43.021785 #95559] ERROR -- clover-oraclelinux-8: /Users/andrewbobulsky/.asdf/installs/ruby/3.0.1/lib/ruby/gems/3.0.0/gems/kitchen-docker-3.0.0/lib/kitchen/docker/helpers/image_helper.rb:39:in `parse_image_id'
E, [2024-07-02T10:04:43.021790 #95559] ERROR -- clover-oraclelinux-8: /Users/andrewbobulsky/.asdf/installs/ruby/3.0.1/lib/ruby/gems/3.0.0/gems/kitchen-docker-3.0.0/lib/kitchen/docker/helpers/image_helper.rb:68:in `build_image'

Steps to Reproduce

Try building an image with the latest Docker Desktop and you should have a problem. I admit to only trying this on one machine though.

➕ Additional context

PR incoming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant