I am trying to install kubernetes on aws instance(RHEL8) but while running kubeadm init it gives me back docker.service not found. I did some digging and I found that
The docker package is not shipped or supported by Red Hat for Red Hat Enterprise Linux (RHEL) 8. The docker container engine is replaced by a suite of tools in the Container Tools module.
now my question is how to install docker for kubernetes cluster? and If docker is not supported then what are the other options to launch kubernetes on RHEL8. How can we do the installation of kubernetes on RHEL8 with that other options? A detailed answer would be helpful. Thank You.
You need to install docker manually using yum package manager. Then you should be able to initialize kubeadm
Use CRI-O as the container runtime instead of Docker. OpenShift uses CRI-O on RHEL8 so it is well supported (here's why).
Quoting a statement from this doc.
The docker package is not shipped or supported by Red Hat for Red Hat Enterprise Linux (RHEL) 8. The docker container engine is replaced by a suite of tools in the Container Tools module.
You need to use CRI-O as container runtime instead of docker, this doc will help.
OR
Try this hack to install docker-ce on rhel-8.