Housekeep your local image registry
You may have a local image registry setup (using docker.io/registry:2) where you manage your own images. But after a while, housekeeping is required.
Remove individual image
Instead of calling some of the registry API through curl, let’s use the tool called crane from the go-containerregistry repo.