You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a pack build is performed that creates an ephemeral builder image, that builder image is now left behind at the end of the build when it was previously deleted. After lots of builds in a row this results in many stray images left behind.
Thanks @jjbustamante. I would have to dig a little bit to determine if it's related to that commit. The ephemeral builder name should never equal the raw builder name if we actually created an ephemeral builder image. That said the timing of the bug does seem suspicious.
Oh jeez, I realized that createEphemeralBuilder actually mutates the provided the rawBuilderImage that is passed in, so ephemeralBuilder.Name() == rawBuilderImage.Name() always returns true. I think #2260 should fix it, but I haven't tested it.
Summary
When a
pack build
is performed that creates an ephemeral builder image, that builder image is now left behind at the end of the build when it was previously deleted. After lots of builds in a row this results in many stray images left behind.Reproduction
Steps
docker system prune --all --volumes --force
docker images
mkdir testcase && cd $_ && touch Procfile
pack build testcase --builder heroku/builder:24 --buildpack heroku/[email protected]
docker images | rg builder
Current behavior
Unexpected leftover ephemeral builder image:
Expected behavior
No leftover ephemeral builder image.
Environment
pack info
docker info
docker info
The text was updated successfully, but these errors were encountered: