Skip to content

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

Closed

Description

@chschamp

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

Activity

  1. AkihiroSuda commented on May 22, 2024

    @AkihiroSuda
    Member

    Please try removing --all-platforms

  2. chschamp commented on May 22, 2024

    @chschamp
    Author

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

  3. kebe7jun commented on May 23, 2024

    @kebe7jun
    Contributor

    +1 I had the same problem.

    but nerdctl run works fine.

  4. kebe7jun commented on May 23, 2024

    @kebe7jun
    Contributor

    +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?

  5. chschamp commented on May 24, 2024

    @chschamp
    Author

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/unconfirmed-bug-claim

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions