Scanning images using dind


We are currently in the process of setting up a GitLab pipeline and we want to include a job that scans images for us. This pointed us to where it recommends to use clair but using the dind executor.

However when we try to use the dind executor, we come across issues with certificates as we are trying to pull images from a registry that we are hosting inhouse, where we are using self signed certs. Ref:

We have tried many work arounds suggested but all seem to not work for various reasons.
So I have a few questions:

  1. Should we simply change the self signed cert to a cert from a registered certificate authority?
  2. Is clair the only option to scan images via gitlab?
  3. Should we be avoiding dind runner altogether according to this post?

Any help greatly appreciated.