Skip to content
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

Do not unpack when there are no layers present. #3251

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

manugupt1
Copy link
Contributor

Fixes: #3212 When trying to build scratch images and unpacking is true, containerd worker results in a panic. In order to avoid this, unpack only when num layers are greater than 0.

Signed-off-by: Manu Gupta manugupt1@gmail.com

@manugupt1
Copy link
Contributor Author

cc @ktock @AkihiroSuda

@AkihiroSuda
Copy link
Member

Thanks, can we have an integration test?

@manugupt1 manugupt1 force-pushed the scratch branch 2 times, most recently from 6cad12d to 1c41a4d Compare November 2, 2022 23:41
client/client_test.go Outdated Show resolved Hide resolved
Fixes: moby#3212
When trying to build scratch images and unpacking is true,
containerd worker results in a panic. In order to avoid this,
unpack only when src ref is not nil.

Signed-off-by: Manu Gupta <manugupt1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unpacking fails when dangling prefix is set to a value on containerd worker.
3 participants