From 72b296d319682e2f3fd3daba84b10bc647a5f5d4 Mon Sep 17 00:00:00 2001 From: Marco Vedovati Date: Thu, 23 May 2019 12:54:31 +0200 Subject: [PATCH] install: improve Docker installation for openSUSE Editing systemd unit files to customize Docker for Kata may generate conflicts with what's specified in /etc/sysconfig/docker, so use that file directly. Also, libcgroup1 dependency is wrong for newer distros, and should be pulled automatically for older ones. Signed-off-by: Marco Vedovati --- install/docker/opensuse-docker-install.md | 20 +++++++++---------- install/opensuse-installation-guide.md | 5 ++--- install/opensuse-leap-installation-guide.md | 7 ++++++- .../opensuse-tumbleweed-installation-guide.md | 7 ++++++- 4 files changed, 24 insertions(+), 15 deletions(-) diff --git a/install/docker/opensuse-docker-install.md b/install/docker/opensuse-docker-install.md index 74e4c33a4b..7b3d05bced 100644 --- a/install/docker/opensuse-docker-install.md +++ b/install/docker/opensuse-docker-install.md @@ -1,4 +1,4 @@ -# Install Docker for Kata Containers on openSUSE Leap/Tumbleweed +# Install Docker for Kata Containers on openSUSE > **Note:** > @@ -14,24 +14,24 @@ > If you wish to use a block based backend, see the options listed on https://github.com/kata-containers/documentation/issues/407. ```bash - $ sudo zypper -n install libcgroup1 $ sudo zypper -n install docker ``` For more information on installing Docker please refer to the [Docker Guide](https://software.opensuse.org/package/docker). -2. Configure Docker to use Kata Containers by default with one of the following methods: +2. Configure the Docker daemon to use Kata Containers by default, with one of the following methods: - 1. systemd + 1. Specify the runtime options in `/etc/sysconfig/docker`: ```bash - $ sudo mkdir -p /etc/systemd/system/docker.service.d/ - $ cat < + +2. Decide which container manager to use and select the corresponding link that follows: + - [Docker](docker/opensuse-leap-docker-install.md) + - [Kubernetes](../Developer-Guide.md#run-kata-containers-with-kubernetes) diff --git a/install/opensuse-tumbleweed-installation-guide.md b/install/opensuse-tumbleweed-installation-guide.md index 66d5867f2d..35ec2f2e3d 100644 --- a/install/opensuse-tumbleweed-installation-guide.md +++ b/install/opensuse-tumbleweed-installation-guide.md @@ -1,6 +1,7 @@ # Install Kata Containers on openSUSE Tumbleweed -Follow the instructions in the generic [openSUSE install guide](opensuse-installation-guide.md). +1. Install Kata Containers on openSUSE by following the instructions in the +[openSUSE install guide](opensuse-installation-guide.md). + +2. Decide which container manager to use and select the corresponding link that follows: + - [Docker](docker/opensuse-tumbleweed-docker-install.md) + - [Kubernetes](../Developer-Guide.md#run-kata-containers-with-kubernetes)