How to find all tags of a Docker image - the skopeo utility
Greetings!

Situation: you urgently need to find the list of available tags for some Docker image. It’s not always convenient to go digging through some web interface for this, be it Docker Hub itself, a GitHub package releases page, a GitLab registry, and so on.

For this purpose there’s a very handy, lightweight console utility called scopeo. It’s available in the standard Debian/Ubuntu repositories, is installed like any other package, and is quite simple to use 🐧.

Below in this how-to I’ll show a few examples of using it 👨‍💻.

skopeo is a command-line utility for working with container images and OCI registries without needing to download images or run Docker.

Installing skopeo on Debian

The skopeo utility is available in the standard repositories:

BASH
sudo apt update && sudo apt install -y skopeo

skopeo --version
Click to expand and view more

Main skopeo commands

Viewing an image’s tags:

BASH
skopeo list-tags docker://docker.io/library/nginx
Click to expand and view more

Examples:

BASH
skopeo list-tags docker://docker.io/rustfs/rustfs

skopeo list-tags docker://quay.io/hedgedoc/hedgedoc

skopeo list-tags docker://codeberg.org/forgejo/forgejo

skopeo list-tags docker://docker.angie.software/angie
Click to expand and view more

Information about an image:

BASH
skopeo inspect docker://docker.io/library/nginx:latest
Click to expand and view more

Getting an image’s digest:

BASH
skopeo inspect docker://docker.io/library/nginx:latest | jq -r .Digest
Click to expand and view more

Copying an image between registries:

BASH
skopeo copy docker://docker.io/library/nginx:latest docker://registry.example.com/nginx:latest
Click to expand and view more

Copying an image to an OCI layout:

BASH
skopeo copy docker://docker.io/library/nginx:latest oci:./nginx:latest
Click to expand and view more

Copying an image to a Docker archive:

BASH
skopeo copy docker://docker.io/library/nginx:latest docker-archive:nginx.tar
Click to expand and view more

Logging in to an image registry:

BASH
skopeo login registry.example.com
Click to expand and view more

Logging out of a registry:

BASH
skopeo logout registry.example.com
Click to expand and view more

Verbose output via debug:

BASH
skopeo --debug inspect docker://docker.io/library/nginx
Click to expand and view more

Have a great day!

Copyright Notice

Author: Ivan Cherniy

Link: https://r4ven.me/en/software/kak-uznat-vse-tegi-docker-obraza-utilita-skopeo/

License: CC BY-NC-SA 4.0

Blog materials may be used with attribution to the author and source, for non-commercial purposes, and under the same license.

Start searching

Enter keywords to search articles

↑↓
ESC
⌘K Shortcut