x509: certificate signed by unknown authority (possibly because of "crypto/rsa:…authority certificate "osmacbook")

I was working on a project and learning docker with Kubernetes, and my containers keep showing up even when I tried to kill / remove / purge all of them. So I tried uninstall Docker and Minikube from my Mac, and also errased some folders from my Finder, such as /minikube, /docker and maybe one more. I reinstalled both and now when I try to use it with “docker ps” or “docker build…” it returns:

“x509: certificate signed by unknown authority (possibly because of “crypto/rsa: verification error” while trying to verify candidate authority certificate “osmacbook”)”

Recently I have also changed my MacBook name from “osmacbook” to “ols”.

Anyone can help me please?

Source: StackOverflow