|
1 | 1 | # Install Kata Containers on Debian
|
2 | 2 |
|
3 |
| -1. Install the unsatisfied dependencies |
4 |
| - |
5 |
| - Kata Containers packages depends on a version of `librbd1` that's not yet available in the `stable` repo. |
6 |
| - A more recent version of `librbd1` can be installed from the `unstable` repo: https://packages.debian.org/sid/librbd1 |
7 |
| - |
8 |
| - Add `unstable` repo to `/etc/apt/sources.list.d/unstable.list` sources list: |
9 |
| - |
10 |
| - ```bash |
11 |
| - $ sudo sh -c "echo '# for unstable packages |
12 |
| - deb http://ftp.debian.org/debian/ unstable main contrib non-free |
13 |
| - deb-src http://ftp.debian.org/debian/ unstable main contrib non-free' > /etc/apt/sources.list.d/unstable.list" |
14 |
| - ``` |
15 |
| - |
16 |
| - 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`: |
17 |
| - |
18 |
| - ```bash |
19 |
| - $ sudo sh -c "echo 'Package: * |
20 |
| - Pin: release a=unstable |
21 |
| - Pin-Priority: 10' >> /etc/apt/preferences.d/unstable" |
22 |
| - ``` |
23 |
| - |
24 |
| - Finally, install `librbd1`: |
25 |
| - |
26 |
| - ```bash |
27 |
| - $ sudo apt-get update && sudo apt-get install -y -t unstable librbd1 |
28 |
| - ``` |
29 |
| - |
30 |
| -2. Install the Kata Containers components with the following commands: |
| 3 | +1. Install the Kata Containers components with the following commands: |
31 | 4 |
|
32 | 5 | ```bash
|
33 | 6 | $ export DEBIAN_FRONTEND=noninteractive
|
|
43 | 16 | $ sudo -E apt-get -y install kata-runtime kata-proxy kata-shim
|
44 | 17 | ```
|
45 | 18 |
|
46 |
| -3. Decide which container manager to use and select the corresponding link that follows: |
| 19 | +2. Decide which container manager to use and select the corresponding link that follows: |
47 | 20 |
|
48 | 21 | - [Docker](docker/debian-docker-install.md)
|
49 | 22 | - [Kubernetes](https://github.com/kata-containers/documentation/blob/master/Developer-Guide.md#run-kata-containers-with-kubernetes)
|
0 commit comments