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

nerdctl push level=fatal msg="content digest sha256:xxx: not found" #3026

Closed
shiyong1989 opened this issue May 21, 2024 · 5 comments · Fixed by #3435
Closed

nerdctl push level=fatal msg="content digest sha256:xxx: not found" #3026

shiyong1989 opened this issue May 21, 2024 · 5 comments · Fixed by #3435
Labels
kind/unconfirmed-bug-claim Unconfirmed bug claim

Comments

@shiyong1989
Copy link

Description

nerdctl push level=fatal msg=content digest sha256:xxx: not found

Steps to reproduce the issue

command :

  1. nerdctl commit --namespace xxx "${CONTAINER_ID}" "${_IMAGE_INFO}"

  2. nerdctl push --namespace xxx "${_IMAGE_INFO}" --all-platforms --insecure-registry --hosts-dir /etc/cert/certs.d/

Describe the results you received and expected

1.return msg:
level=warning msg="Image lacks label "nerdctl/platform", assuming the platform to be "linux/arm64/v8""
sha256:91d29b450fd577c6178932589d82d6605cfba904b7d16b75d6e81bbf00426057

2.return msg:
level=warning msg="skipping verifying HTTPS certs for "harbor address""
manifest-sha256:0ec2084b9ea28247e6039d3a4d4a1dc7303283a2d026dbc136d1bc52b488278c: waiting |--------------------------------------|
config-sha256:91d29b450fd577c6178932589d82d6605cfba904b7d16b75d6e81bbf00426057: waiting |--------------------------------------|
elapsed: 0.1 s total: 0.0 B (0.0 B/s)
manifest-sha256:0ec2084b9ea28247e6039d3a4d4a1dc7303283a2d026dbc136d1bc52b488278c: waiting |--------------------------------------|
config-sha256:91d29b450fd577c6178932589d82d6605cfba904b7d16b75d6e81bbf00426057: waiting |--------------------------------------|
elapsed: 0.2 s total: 0.0 B (0.0 B/s)

level=fatal msg="content digest sha256:cd25eaaf6be54ee842ccee9897790061be5fc8f83a04a3766fe9b94c14669855: not found"

What version of nerdctl are you using?

1.5.0

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

@shiyong1989 shiyong1989 added the kind/unconfirmed-bug-claim Unconfirmed bug claim label May 21, 2024
@AkihiroSuda
Copy link
Member

Please try removing --all-platforms

@shiyong1989
Copy link
Author

Removing --all-platforms will be the same problem.

@kebe7jun
Copy link
Contributor

kebe7jun commented May 23, 2024

+1 I had the same problem.

but nerdctl run works fine.

@kebe7jun
Copy link
Contributor

kebe7jun commented May 23, 2024

+1 I had the same problem.

but nerdctl run works fine.

I found that the issue was caused by the compressed layer of the base image not existing in the content dir. You need to first execute nerdctl pull xxxx --unpack=false for the base image, and then push the committed image.

Does this meet your expectations?

@shiyong1989
Copy link
Author

shiyong1989 commented May 24, 2024

@kebe7jun I`ll try this command , thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/unconfirmed-bug-claim Unconfirmed bug claim
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants