Questions tagged [skopeo]

skopeo is a command-line utility that performs various operations on container images and image repositories.

Skopeo works with API V2 container image registries such as docker.io and quay.io registries, private registries, local directories, and local OCI-layout directories. Skopeo can perform operations that consist of:

  • Copying an image from and to various storage mechanisms. For example, you can copy images from one registry to another, without requiring privilege.
  • Inspecting a remote image showing its properties including its layers, without requiring you to pull the image to the host.
  • Deleting an image from an image repository.
  • Syncing an external image repository to an internal registry for air-gapped deployments.
  • When required by the repository, skopeo can pass the appropriate credentials and certificates for authentication.
13 questions
3
votes
2 answers

How to find a container image tag/label from its hash

I have a use case I need to find the image tag from its hashed format. for example, if I have this image quay.io/containerdisks/centos-stream@sha256:0c8d8b253a0b729c602efe45a5bc4640b3d4161b6924db3def2e7a76296e42c9 I would like to find one or more…
Rabin
  • 826
  • 10
  • 21
1
vote
1 answer

Issues using skopeo copy to gcr, unable to authenticate on google cloud

I'm trying to pull and push images in a Gitlab pipeline avoiding to use docker-in-docker approach so I'm trying to use skopeo for that. But right now I'm having issues authenticating skopeo on gcr because we use key authentication for Service…
1
vote
2 answers

Inspect local image with Skopeo

I am able to inspect remote images using Skopeo skopeo inspect docker://{registry}/{repository}:latest but I cannot figure out how to run the same on a local image (same as I would do with docker inspect). Is that possible?
Beppe C
  • 11,256
  • 2
  • 19
  • 41
1
vote
0 answers

Accessing local docker registry from Skopeo container

I have a local docker registry on my mac and I want to be able to perform this type of command: docker run quay.io/skopeo/stable inspect Tried to use docker run quay.io/skopeo/stable inspect docker-daemon: (docker-daemon will use the local…
0
votes
1 answer

why can't skopeo inspect the local registry?

I have the following images on RHEL7: sudo docker images REPOSITORY TAG IMAGE ID CREATED SIZE localhost:5000/myrhel7 latest dc2f776f25d9 6 days…
sebelk
  • 565
  • 1
  • 6
  • 16
0
votes
1 answer

Bash command always evaluating else case

I have this if else command that always result in "no match" although I am expecting it to say "match" $ skopeo inspect docker://abc:xyz 2>&1 time="2023-03-03T04:33:12Z" level=fatal msg="Error parsing image name \"docker://abc:xyz\": reading…
Vishal
  • 1
  • 1
0
votes
0 answers

How can I import images into containerd?

I imported an image by using ctr image import alpine.tar but I use ctr images ls return is empty first i use skopeo copy docker://docker.io/library/alpine:latest docker-archive:alpine.tar to get the tar I wish I could import this image into…
Tovi
  • 1
  • 1
0
votes
1 answer

How to find the pulled date of an image in Harbor with skopeo inspect?

How to get the docker image when has been pulled with skopeo inspect? When I use skopeo inspect --tls-verify=false docker://${image_path}:${tag} --config I can only find the key value "created" without "pulled". If skopeo is not OK, curl should be…
finalha
  • 1
  • 3
0
votes
1 answer

skopeo copy on remote registries hangs on RHEL8 NFS share

skopeo copy hangs on NFS share. skopeo inspect, list-tags work fine. Relevant logs after which it is stuck forever DEBU[0000] Manifest has MIME type application/vnd.oci.image.manifest.v1+json, ordered candidate list…
NishitS
  • 31
  • 2
0
votes
3 answers

Republish Docker Image with Preserved Digest to Different Registry

I pull images from public registries such as DockerHub, and push them to a singular private registry. This is a simple process for images in the format of image:tag but not so for those of image@digest. I want to re-publish, or push in Docker's…
Dbercules
  • 629
  • 1
  • 9
  • 26
0
votes
1 answer

Where does skopeo cache docker images when copying between two registries?

Where does skopeo store its local cache with image layers when copying an image between two remote registries (or just two repos from the same remote registry)? For example, this command, when executed twice, shows clear evidence of a local cache…
mirekphd
  • 4,799
  • 3
  • 38
  • 59
0
votes
1 answer

Skopeo tool for docker images - Retagging

I am downloading a docker image using Skopeo tool on a linux machine - Works successfully skopeo copy --src-creds uname:pwd docker://url/image:tag dir:/home/image I am trying to change the tag of this image. Currently the image tag is "latest"…
0
votes
0 answers

skopeo inspect does not work behind proxy

I am facing this while installing OKD 3.11. While the docker login works from command line, skopeo fail to do so. We are using http/https proxy on the server and have configured proxy for docker as well. [root@hostname-ansible01 openshift-ansible]#…
srv_ER
  • 123
  • 1
  • 11