bottlerocket-os / twoliter

A build tool for customizing Bottlerocket
Other
21 stars 20 forks source link

no such container/image during repack #252

Open jpculp opened 1 month ago

jpculp commented 1 month ago

Description

When repacking, buildsys attempts to cleanup the buildsys-repack container/image prematurely, printing the following error:

Error response from daemon: No such container: buildsys-repack-aws-fargate-1.4.0-aarch64-45c707cd479e

Error response from daemon: No such image: buildsys-repack-aws-fargate-1.4.0-aarch64-45c707cd479e:latest

This error is somewhat hidden, appearing only in build/logs/<ARCH>-<VARIANT>/latest/repack.out, but we should still address it to avoid confusion.

Definition of Done

Suppress the error by iterating over lines in the output, and silencing "No such (container|image): ".

jpculp commented 1 month ago

Be sure to coordinate with @bcressey since the implementation needs to mesh with something he's working on.