Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (33 sloc) 1.92 KB

Install Kata Containers on Debian

  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:

Add unstable repo to /etc/apt/sources.list.d/unstable.list sources list:

$ sudo sh -c "echo '# for unstable packages
deb unstable main contrib non-free
deb-src 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:

$ sudo sh -c "echo 'Package: *
Pin: release a=unstable
Pin-Priority: 10' >> /etc/apt/preferences.d/unstable"

Finally, install librbd1:

$ sudo apt-get update && sudo apt-get install -y -t unstable librbd1
  1. Install the Kata Containers components with the following commands:

    $ export DEBIAN_FRONTEND=noninteractive
    $ ARCH=$(arch)
    $ source /etc/os-release
    $ sudo sh -c "echo 'deb${ARCH}:/master/Debian_${VERSION_ID}/ /' > /etc/apt/sources.list.d/kata-containers.list"
    $ curl -sL${ARCH}:/master/Debian_${VERSION_ID}/Release.key | sudo apt-key add -
    $ sudo -E apt-get update
    $ sudo -E apt-get -y install kata-runtime kata-proxy kata-shim
  2. Decide which container manager to use and select the corresponding link that follows: