0

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.

  • Note that while you can install Kubernetes with the methods below, there are still some incompatibilities, most severely RHEL8 not supporting the legacy iptables mode, which will cause problems when exposing services and other network configuration. Best stick to RHEL7 / some other distro for now or try Openshift. See https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#ensure-iptables-tooling-does-not-use-the-nftables-backend – VolkA Jan 06 '20 at 10:16

3 Answers3

1

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
  • 68,711
  • 7
  • 155
  • 158
1

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
  • 10,744
  • 4
  • 35
  • 57
0

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

P Ekambaram
  • 15,499
  • 7
  • 34
  • 59