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

fix: save multiple images for the same image id to a tar archive #3822

Merged
merged 1 commit into from
Jan 19, 2025

Conversation

haytok
Copy link
Contributor

@haytok haytok commented Jan 16, 2025

Suppose we try to save multiple container images with the same image ID but different image names into a tar archive using the nerdctl save command.

When we then try to load container images from this tar archive using the nerdctl load command, not all container images will be loaded.

This behavior is reported and the details are described in the following:

Therefore, this PR resolves this issue.

@@ -138,3 +138,60 @@ func TestSave(t *testing.T) {

testCase.Run(t)
}

// TestIssue3806 tests https://github.com/containerd/nerdctl/issues/3806
func TestIssue3806(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a more descriptive test name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for commnets ! I've updated.

@AkihiroSuda AkihiroSuda added this to the v2.0.3 milestone Jan 17, 2025
Suppose we try to save multiple container images with the same image ID
but different image names into a tar archive using the nerdctl save
command.

When we then try to load container images from this tar archive using the
nerdctl load command, not all container images will be loaded.

This behavior is reported and the details are described in the following:

- containerd#3806

Therefore, this PR resolves this issue.

Signed-off-by: Hayato Kiwata <haytok@amazon.co.jp>
@haytok haytok force-pushed the nerdctl_issue_3806 branch from 7656bdb to 9a6426d Compare January 17, 2025 09:56
@haytok
Copy link
Contributor Author

haytok commented Jan 17, 2025

Run integration tests (flaky) has failed ...
If it is flaky, could you re-run CI again?

Copy link
Member

@fahedouch fahedouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@fahedouch fahedouch merged commit b792f1f into containerd:main Jan 19, 2025
30 checks passed
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.

3 participants