Skip to content

nerctl commit image couldn‘t push #3248

Closed as not planned
Closed as not planned

Description

@xjdtd

Description

[root@node02 ~]# nerdctl -n k8s.io ps |grep gitlab-runner
926a762b2a98 registry.xjd.com:5443/cicd/gitlab-runner:v17.2.0 "/usr/bin/dumb-init …" 12 hours ago Up k8s://cicd/gitlab-runner-78cbbdc498-8s77r/gitlab-runner
ead863474fe8 registry.aliyuncs.com/google_containers/pause:3.9 "/pause" 12 hours ago Up k8s://cicd/gitlab-runner-78cbbdc498-8s77r

[root@node02 ~]# nerdctl -n k8s.io commit 926a762b2a98 registry.xjd.com:5443/cicd/gitlab-runner:v17.2.1
WARN[0000] Image lacks label "nerdctl/platform", assuming the platform to be "linux/amd64"
sha256:8f0608ae860357cbb3efec565072070f2b9fc44c674c418ba9a04df57f8bd341

[root@node02 ~]# nerdctl -n k8s.io push registry.xjd.com:5443/cicd/gitlab-runner:v17.2.1
FATA[0000] failed to create a tmp single-platform image "registry.xjd.com:5443/cicd/gitlab-runner:v17.2.1-tmp-reduced-platform": content digest sha256:560c024910bebac6b404791af28ebd48a8289303b8377d17b67ffdfe52754f2a: not found
[root@node02 ~]#

Steps to reproduce the issue

Describe the results you received and expected

commit image could push

What version of nerdctl are you using?

[root@node02 ~]# nerdctl --version
nerdctl version 1.7.6

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

None

Host information

No response

Activity

  1. apostasie commented on Jul 25, 2024

    @apostasie
    Contributor

    @xjdtd

    I do not have access to your private repo and image.

    I can confirm that the following is working:

    nerdctl pull bitnami/gitlab-runner:latest
    nerdctl run -d --name gr bitnami/gitlab-runner:latest
    nerdctl commit 297e187df139 apostasie/test
    nerdctl push apostasie/test
    

    Can you provide a reproducible case for your problem?

    (* WARN[0000] Image lacks label "nerdctl/platform", assuming the platform to be "linux/amd64" is certainly giving a pointer to whats going on, but information on how your produced that / built the image would help a lot)

  2. memeda3n commented on Jul 26, 2024

    @memeda3n

    I meet the same problem too.
    I commit a k8s pod with nerdctl, but , I can not push it to Harbor。

  3. apostasie commented on Jul 26, 2024

    @apostasie
    Contributor

    @memeda3n can you provide steps to reproduce?

    Also, is this harbor specific? What happens if you push to docker hub instead?

  4. apostasie commented on Jul 30, 2024

    @apostasie
    Contributor

    @AkihiroSuda probably a duplicate of #827

  5. added
    duplicate
    and removed
    kind/unconfirmed-bug-claim
    on Jul 30, 2024
  6. memeda3n commented on Jul 31, 2024

    @memeda3n

    @apostasie
    I can't try it because our service can only run within the internal network.

    Here are the details:
    In our Kubernetes cluster, I want to commit a running pod to create an image.
    nerdctl version is 1.7.6
    containerd version is 1.6.24

    Here are the steps I'm following:
    nerdctl

    when I save the image as tar.gz ,also case the same issue.

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

    duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions