-
Notifications
You must be signed in to change notification settings - Fork 293
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
pack build
fails with experimental containerd feature enabled in Docker Desktop (macos)
#1519
Comments
Confirmed here, disabling the containerd option makes it work. |
This is related to #1853. |
Cross-posting from #1853 (comment):
|
The problem seems to be in the buildpacks/imgutil library, the unit tests are failing with Docker Desktop + Containerd |
Just adding a note that this isn't only applicable to MacOS - Docker Desktop on Windows has the same issue when containerd is enabled. You get a slightly different error message, but it is also resolved by disabling containerd support. Worth noting that on the version of docker desktop that I am using on windows (4.23) it seems that containerd support is the default. |
I played around with this a little today. I think in the short term this could be fixed with some small changes to imgutil, but we'll probably want a larger refactor to imgutil/local package at some point. I'll put up a PR shortly and link back to it here... |
The shipped a release candidate version of pack 0.32.0, in this version we included @natalieparellano pull request, which should be fixing the problem with containerd. The bad news is, right now, there is a performance penalty on builds, compared to the default docker storage, that we are thinking on how to improve. We wanted to add at least a warning message for end users to let them know about this performance penalty, but that message is not there yet. We will love if you can take a look and test this pack version to validate if your problem is solved! Let us know any feedback. |
Hi @jjbustamante! After trying it out, the problem is still present but at a different stage in my case. Now the actual build starts and completes without issues, however it fails during export:
The actual final image has been successfully saved and available, but with a different ID Also pack fails to pull a builder/run image from a protected registry (no problems when running
|
@pbusko I think this makes sense - we need to update imgutil in the lifecycle, then the save should succeed. |
We recently learned (see moby/moby#46746) that we could send an OCI layout formatted tar to the daemon instead of the current tar format. We should use imgutil layout/sparse images to preserve our optimization. In the meantime we could update imgutil in the lifecycle, but we should emit a warning that performance may be degraded if we detect containerd storage. |
Summary
pack build
fails with the errorERROR: failed to build: failed to fetch builder image 'index.docker.io/paketobuildpacks/builder:base': image index.docker.io/paketobuildpacks/builder:base does not exist on the daemon: not found
on MacOS with the experimental containerd feature enabled for docker.Reproduction
Steps
4.12.0
)pack build
against any sample application.Current behavior
Expected behavior
pack build
should succeedEnvironment
pack info
docker info
The text was updated successfully, but these errors were encountered: