-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
client.Pull(..., WithPullUnpack)
doesn't fetch layer contents if snapshot already exists
#8973
Comments
It means that there is reference to the parent by the container. The I think the solution is to generate the content blob if it's not exist when push. cc @cardyok |
This is a common situation today in the pull->tag->push flow. By default pull+unpack is optimizing for running a container on the current platform and will skip unneeded content (whether because different platform or already exists). Changing the default pull behavior should be up to the client but we could possibly try and be smarter on tag and push operations as well.
|
The same as containerd/nerdctl#2327 |
#8878 seems like a fix to this issue. |
Facing the exact same issue. While we are waiting for the fix PR #8878 to be reviewed and merged, is there any workaround we can try?
Whenever I try export this image I faced the following issue:
|
Description
When pulling an image using
client.Pull
function withWithPullUnpack
option, the manifest blobs are split into "layers" and "non-layers". This allows to defer the download of layers which makes it possible for remote snapshotters to work.containerd/pkg/unpack/unpacker.go
Lines 186 to 205 in 36b8719
However, the
unpack
code doesn't reach the point where it fetches the layers because it exits early when the snapshot is already present:containerd/pkg/unpack/unpacker.go
Lines 298 to 300 in 36b8719
Steps to reproduce the issue
Nerdctl reproduction:
Describe the results you received and expected
Operations that need packed content work after
client.Pull(..., WithPullUnpack)
.What version of containerd are you using?
v1.7.3
Any other relevant information
No response
Show configuration if it is related to CRI plugin.
No response
The text was updated successfully, but these errors were encountered: