Beppe C
Beppe C

Reputation: 13973

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?

Upvotes: 1

Views: 7359

Answers (3)

nitnit
nitnit

Reputation: 31

After encountering the same issue in the end of 2024 as described in this topic, here's how I managed to inspect my local images using Skopeo.

  1. Download the Skopeo image:

Download the Skopeo Docker image instead of using installation tools like yum or apt. This way, you manage everything directly through Docker.

`docker pull quay.io/skopeo/stable:latest` 
  1. Inspect a local image using the Skopeo Docker image: Instead of installing Skopeo directly (e.g., via apt or another package manager), you can use the Skopeo Docker image:

    docker run --rm quay.io/skopeo/stable inspect docker://nginx:latest

Notes:

  • The docker-daemon argument is not supported by Skopeo.
  • You must now specify docker:// as if it were a protocol for Docker.

Upvotes: 1

10 cls
10 cls

Reputation: 1445

Use the docker-daemon repository type:

skopeo inspect docker-daemon:myimage:0.0.7

Upvotes: 2

khoshahmad
khoshahmad

Reputation: 79

Try skopeo inspect containers-storage:<repository/image name> for example:

skopeo inspect containers-storage:localhost/myimg

Upvotes: 3

Related Questions