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?
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
Try this:
microk8s ctr images ls
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