mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-13 15:14:08 +00:00
Merge pull request #512 from GabyCT/topic/fixdebiandoc
docs: Fix debian installation guide
This commit is contained in:
commit
1aec41a28d
@ -1,33 +1,6 @@
|
|||||||
# Install Kata Containers on Debian
|
# Install Kata Containers on Debian
|
||||||
|
|
||||||
1. Install the unsatisfied dependencies
|
1. Install the Kata Containers components with the following commands:
|
||||||
|
|
||||||
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"
|
|
||||||
```
|
|
||||||
|
|
||||||
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:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ export DEBIAN_FRONTEND=noninteractive
|
$ export DEBIAN_FRONTEND=noninteractive
|
||||||
@ -43,7 +16,7 @@
|
|||||||
$ sudo -E apt-get -y install kata-runtime kata-proxy kata-shim
|
$ sudo -E apt-get -y install kata-runtime kata-proxy kata-shim
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Decide which container manager to use and select the corresponding link that follows:
|
2. Decide which container manager to use and select the corresponding link that follows:
|
||||||
|
|
||||||
- [Docker](docker/debian-docker-install.md)
|
- [Docker](docker/debian-docker-install.md)
|
||||||
- [Kubernetes](https://github.com/kata-containers/documentation/blob/master/Developer-Guide.md#run-kata-containers-with-kubernetes)
|
- [Kubernetes](https://github.com/kata-containers/documentation/blob/master/Developer-Guide.md#run-kata-containers-with-kubernetes)
|
||||||
|
Loading…
Reference in New Issue
Block a user