kubernetes installation on RHEL8 Fatal:docker.service not found

8/6/2019

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.

-- Yeshwanth Sai
docker
installation
kubernetes
podman

3 Answers

8/6/2019

You need to install docker manually using yum package manager. Then you should be able to initialize kubeadm

-- P Ekambaram
Source: StackOverflow

8/6/2019

Use CRI-O as the container runtime instead of Docker. OpenShift uses CRI-O on RHEL8 so it is well supported (here's why).

CRI-O includes some docco for kubeadm.

-- Matt
Source: StackOverflow

8/6/2019

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.

-- mchawre
Source: StackOverflow