Reputation: 13973
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
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.
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`
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
docker-daemon
argument is not supported by Skopeo.docker://
as if it were a protocol for Docker.Upvotes: 1
Reputation: 1445
Use the docker-daemon repository type:
skopeo inspect docker-daemon:myimage:0.0.7
Upvotes: 2
Reputation: 79
Try skopeo inspect containers-storage:<repository/image name> for example:
skopeo inspect containers-storage:localhost/myimg
Upvotes: 3