Prasyarat
- Baremetal atau Virtualisasi yang mendukung Nested Virtualization
Panduan
1. Pasang Repository Kata Container
ARCH=$(arch)
BRANCH="${BRANCH:-master}"
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/${BRANCH}/xUbuntu_$(lsb_release -rs)/ /' > /etc/apt/sources.list.d/kata-containers.list"
curl -sL http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/${BRANCH}/xUbuntu_$(lsb_release -rs)/Release.key | sudo apt-key add -
sudo -E apt-get update
sudo -E apt-get -y install kata-runtime kata-proxy kata-shim
2. Periksa kemampuan host untuk menjalankan Kata Container
kata-runtime kata-check
Keluaran yang diharapkan
student@kata-host:~$ kata-runtime kata-check
No newer release available
System is capable of running Kata Containers
3. Pasang Containerd
sudo apt-get -y install containerd
4. Coba jalankan sebuah container menggunakan Kata Container
sudo ctr run --runtime io.containerd.run.kata.v2 -t --rm docker.io/library/busybox:latest kata-demo sh
5. Periksa proses container
htop