Get x509: certificate signed by unknown authority


When I install kubernetes in windows and start using virtualbox, Kubernetes is not able to pull nginx image from docker due to certificate issue. How can I resolve this issue?

The steps works fine from KodeCloud Labs.

Type Reason Age From Message

Normal Scheduled 14s default-scheduler Successfully assigned default/nginx to minikube
Normal Pulling 8s kubelet Pulling image “nginx”
Warning Failed 7s kubelet Failed to pull image “nginx”: rpc error: code = Unknown desc = Error response from daemon: Get x509: certificate signed by unkno
wn authority
Warning Failed 7s kubelet Error: ErrImagePull
Normal BackOff 6s kubelet Back-off pulling image “nginx”
Warning Failed 6s kubelet Error: ImagePullBackOff