DEV Community

rndmh3ro
rndmh3ro

Posted on • Originally published at zufallsheld.de on

TIL you can inspect Docker-Container now with the docker-cli

When I wanted to inspect Docker-Container that existed in a remote Docker-registry, I normally used skopeo:

skopeo inspect docker://ubuntu:latest
{
    "Name": "docker.io/library/ubuntu",
    "Digest": "sha256:9a0bdde4188b896a372804be2384015e90e3f84906b750c1a53539b585fbbe7f",
    "RepoTags": [
        "10.04",
        "12.04",
        "12.04.5",
}

Enter fullscreen mode Exit fullscreen mode

This command show me all the information about the image that I needed to know - tags, architecture and other things. It also showed me in an simple way if I could access the registry at all.

TIL that the docker-cli has an experimental feature called docker manifest. The docker manifest feature does basically the same, albeit a bit slower:

> docker manifest inspect ubuntu:latest
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.oci.image.index.v1+json",
   "manifests": [
      {
         "mediaType": "application/vnd.oci.image.manifest.v1+json",
         "size": 424,
         "digest": "sha256:c985bc3f77946b8e92c9a3648c6f31751a7dd972e06604785e47303f4ad47c4c",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },

Enter fullscreen mode Exit fullscreen mode

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up