How could I list the images pushed to microk8s built-in registry

5/19/2020

I installed microk8s and I enabled registry addon I am able to push docker images to this registry and I am able to use this images in deployments.

But I'm trying to list images that was already pushed to this registry. How can I do that? Is there an API for that?

-- EduMelo
docker
docker-registry
kubernetes
microk8s

3 Answers

5/20/2020

I found that it's possible to list the registry images via HTTP GET in this address: http://:32000/v2/_catalog

It'll return the images in a json response

-- EduMelo
Source: StackOverflow

5/19/2020

Try this:

microk8s ctr images ls
-- JaskiratSra
Source: StackOverflow

5/19/2020

Use command microk8s ctr images list. To know more use --help

microk8s ctr images --help
NAME:
   ctr images - manage images

USAGE:
   ctr images command [command options] [arguments...]

COMMANDS:
     check       check that an image has all content available locally
     export      export an image
     import      import images
     list, ls    list images known to containerd
     pull        pull an image from a remote
     push        push an image to a remote
     remove, rm  remove one or more images by reference
     label       set and clear labels for an image

OPTIONS:
   --help, -h  show help
-- Arghya Sadhu
Source: StackOverflow