diff --git a/install/debian-installation-guide.md b/install/debian-installation-guide.md index 6897d1d455..470aab64e4 100644 --- a/install/debian-installation-guide.md +++ b/install/debian-installation-guide.md @@ -2,30 +2,30 @@ 1. Install the unsatisfied dependencies - Kata Containers packages depends on a version of `librbd1` that's not yet available in the `stable` repo. - A more recent version of `librbd1` can be installed from the `unstable` repo: https://packages.debian.org/sid/librbd1 + Kata Containers packages depends on a version of `librbd1` that's not yet available in the `stable` repo. + A more recent version of `librbd1` can be installed from the `unstable` repo: https://packages.debian.org/sid/librbd1 - Add `unstable` repo to `/etc/apt/sources.list.d/unstable.list` sources list: - - ```bash - $ sudo sh -c "echo '# for unstable packages - deb http://ftp.debian.org/debian/ unstable main contrib non-free - deb-src http://ftp.debian.org/debian/ unstable main contrib non-free' > /etc/apt/sources.list.d/unstable.list" - ``` - - Set the repository to a lower priority than stable, to ensures that APT will prefer stable packages over unstable ones. This can be specified in `/etc/apt/preferences.d/unstable`: - - ```bash - $ sudo sh -c "echo 'Package: * - Pin: release a=unstable - Pin-Priority: 10' >> /etc/apt/preferences.d/unstable" - ``` + Add `unstable` repo to `/etc/apt/sources.list.d/unstable.list` sources list: - Finally, install `librbd1`: + ```bash + $ sudo sh -c "echo '# for unstable packages + deb http://ftp.debian.org/debian/ unstable main contrib non-free + deb-src http://ftp.debian.org/debian/ unstable main contrib non-free' > /etc/apt/sources.list.d/unstable.list" + ``` - ```bash - $ sudo apt-get update && sudo apt-get install -y -t unstable librbd1 - ``` + Set the repository to a lower priority than stable, to ensures that APT will prefer stable packages over unstable ones. This can be specified in `/etc/apt/preferences.d/unstable`: + + ```bash + $ sudo sh -c "echo 'Package: * + Pin: release a=unstable + Pin-Priority: 10' >> /etc/apt/preferences.d/unstable" + ``` + + Finally, install `librbd1`: + + ```bash + $ sudo apt-get update && sudo apt-get install -y -t unstable librbd1 + ``` 2. Install the Kata Containers components with the following commands: diff --git a/install/docker/centos-docker-install.md b/install/docker/centos-docker-install.md index bb58e8c83e..a4023ca841 100644 --- a/install/docker/centos-docker-install.md +++ b/install/docker/centos-docker-install.md @@ -23,46 +23,46 @@ 2. Configure Docker to use Kata Containers by default with one of the following methods: - 1. systemd + 1. systemd - ```bash - $ sudo mkdir -p /etc/systemd/system/docker.service.d/ - $ cat <> /etc/default/docker" ``` @@ -47,34 +47,34 @@ b. systemd EOF ``` -c. systemd Docker `daemon.json` +c. Docker `daemon.json` Add the following definitions to `/etc/docker/daemon.json`: - ```bash - $ sudo sh -c "echo '{ - \"default-runtime\": \"kata-runtime\", - \"runtimes\": { - \"kata-runtime\": { - \"path\": \"/usr/bin/kata-runtime\" + ```json + { + "default-runtime": "kata-runtime", + "runtimes": { + "kata-runtime": { + "path": "/usr/bin/kata-runtime" } } - }' >> /etc/docker/daemon.json" + } ``` 3. Restart the Docker systemd service with one of the following (depending on init choice): a. sysVinit - ```bash + ```sh $ sudo /etc/init.d/docker stop $ sudo /etc/init.d/docker start ``` - to watch for errors: + To watch for errors: - ```bash - tail -f /var/log/docker.log + ```sh + $ tail -f /var/log/docker.log ``` b. systemd @@ -94,6 +94,3 @@ c. systemd Docker `daemon.json` The previous command shows details of the kernel version running inside the container, which is different to the host kernel version. - - - diff --git a/install/docker/fedora-docker-install.md b/install/docker/fedora-docker-install.md index 3ac1f3827c..b37e306241 100644 --- a/install/docker/fedora-docker-install.md +++ b/install/docker/fedora-docker-install.md @@ -25,31 +25,31 @@ 2. Configure Docker to use Kata Containers by default with one of the following methods: - 1. systemd + 1. systemd - ```bash - $ sudo mkdir -p /etc/systemd/system/docker.service.d/ - $ cat <