From 7c895cdfaf95c2730381eb739b1e842bbd9b3034 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Mon, 21 May 2018 02:18:09 -0500 Subject: [PATCH] docs: Add CentOS installation guide This will add the installation guide for CentOS. Fixes #84 Signed-off-by: Gabriela Cervantes --- install/README.md | 1 + install/centos-installation-guide.md | 50 ++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 install/centos-installation-guide.md diff --git a/install/README.md b/install/README.md index 0f67a0e223..6efac4e395 100644 --- a/install/README.md +++ b/install/README.md @@ -2,6 +2,7 @@ Select your preferred distribution: +* [CentOS](https://github.com/kata-containers/documentation/blob/master/install/centos-installation-guide.md) * [Fedora](https://github.com/kata-containers/documentation/blob/master/install/fedora-installation-guide.md) * [Ubuntu](https://github.com/kata-containers/documentation/blob/master/install/ubuntu-installation-guide.md) diff --git a/install/centos-installation-guide.md b/install/centos-installation-guide.md new file mode 100644 index 0000000000..f521a12c9b --- /dev/null +++ b/install/centos-installation-guide.md @@ -0,0 +1,50 @@ +# Installing Kata Containers on CentOS + +Note: Kata Containers is available for CentOS version 7. + +This step is only required in case Docker is not installed on the system. +1. Install the latest version of Docker with the following commands: + +```bash +$ sudo yum -y install dnf-plugins-core +$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo +$ sudo yum -y install docker-ce +``` +For more information on installing Docker please refer to the +[Docker Guide](https://docs.docker.com/engine/installation/linux/centos) + +2. Install the Kata Containers components with the following commands: + + **Note:** The repository redirects the download content to use `http`, be aware that this installation channel is not secure. +```bash +$ source /etc/os-release +$ sudo -E VERSION_ID=$VERSION_ID yum-config-manager --add-repo \ +http://download.opensuse.org/repositories/home:/katacontainers:/release/CentOS_\$VERSION_ID/home:katacontainers:release.repo +$ sudo -E yum -y install kata-runtime kata-proxy kata-shim +``` + +3. Configure Docker to use Kata Containers by default with the following commands: + +```bash +$ sudo mkdir -p /etc/systemd/system/docker.service.d/ +$ cat <