mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-19 07:14:22 +01:00
Generated by git subtree add --prefix=docs git@github.com:kata-containers/documentation.git master git-subtree-dir: docs git-subtree-mainline:ec146a1b39git-subtree-split:510287204bFixes: #329 Signed-off-by: Peng Tao <bergwolf@hyper.sh>
24 lines
1.0 KiB
Markdown
24 lines
1.0 KiB
Markdown
# Install Kata Containers on openSUSE
|
|
|
|
1. Install the Kata Containers components with the following commands:
|
|
|
|
```bash
|
|
$ source /etc/os-release
|
|
$ DISTRO_REPO=$(sed "s/ /_/g" <<< "$NAME")
|
|
$ [ -n "$VERSION" ] && DISTRO_REPO+="_${VERSION}"
|
|
$ DISTRO_REPO=$(echo $DISTRO_REPO | tr -d ' ')
|
|
$ ARCH=$(arch)
|
|
$ BRANCH="${BRANCH:-master}"
|
|
$ REPO_ALIAS="kata-${BRANCH}"
|
|
$ PUBKEY="/tmp/rpm-signkey.pub"
|
|
$ curl -SsL -o "$PUBKEY" "https://raw.githubusercontent.com/kata-containers/tests/master/data/rpm-signkey.pub"
|
|
$ sudo -E rpm --import "$PUBKEY"
|
|
$ zypper lr "$REPO_ALIAS" && sudo -E zypper -n removerepo "$REPO_ALIAS"
|
|
$ sudo -E zypper addrepo --refresh "http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/${BRANCH}/${DISTRO_REPO}/" "$REPO_ALIAS"
|
|
$ sudo -E zypper -n install kata-runtime
|
|
```
|
|
|
|
2. Decide which container manager to use and select the corresponding link that follows:
|
|
- [Docker](docker/opensuse-docker-install.md)
|
|
- [Kubernetes](../Developer-Guide.md#run-kata-containers-with-kubernetes)
|