pack build takes 27x longer when using containerd image store #2272
Labels
good first issue
A good first issue to get started with.
help wanted
Need some extra hands to get this done.
status/ready
Issue ready to be worked on.
type/bug
Issue that reports an unexpected behaviour.
Milestone
Summary
When using the containerd image store (which is now the default for new installs for Docker for Desktop), along with an ephemeral builder image (ie: one where additional buildpacks have been added beyond the ones in the builder, or the group order has been overridden), there is a 20 second delay/hang before the "Analyzing" phase starts, plus image exporting takes 9 seconds instead of milliseconds. This occurs even if the build is forced to trusted mode using
--trust-extra-buildpacks
.Reproduction
Steps
Use containerd for pulling and storing images
is enabled.mkdir testcase && cd $_
touch Procfile
time pack build --builder heroku/builder:24 --pull-policy if-not-present --timestamps --verbose --buildpack heroku/procfile --trust-extra-buildpacks testcase
Current behavior
With containerd enabled:
With containerd disabled:
The majority of the delay occurs at these two places:
~20 second delay here:
~9 second delay when exporting the app image:
When containerd is disabled, the timings for the problematic sections shown above are instead:
~40ms delay (rather than 20 seconds):
~30ms delay when exporting the app image (rather than 9 seconds):
Full logs:
Expected behavior
pack build
duration is very similar regardless of whether containerd is enabled or not (eg is under 2 seconds for both).Environment
pack info
docker info
The text was updated successfully, but these errors were encountered: