Problem in setting up Kubernetes in WSL (Failed to start docker.service: Unit docker.service not found)

I am following this procedure to setup Kubernetes in WSL: WSL Kubernetes Setup

I proceeded to setup kubernetes using Minikube. After the step of enabling SystemD, when I run,

sudo minikube start --driver=none

I get the following error,

Exiting due to RT_DOCKER_EXIT_5: sudo systemctl start docker: exit status 5
stdout:

stderr:
Failed to start docker.service: Unit docker.service not found.

What should be done to resolve this?

You need to install docker:

sudo apt install docker.io

Kind regards,
Stephen

Is it necessary to install docker locally in the wsl? I already have docker for windows and wsl integration enabled.