Skip to content

A usecase for running kata2.0 with alpha release

Fupan Li edited this page Jun 10, 2020 · 1 revision

Tihs readme declare the specific steps to run kata2.0 with containerd

  1. untar the kata2.0 alpha released tarball into /opt directory:
#tar xvf kata-static-2.0.0-alpha1-x86_64.tar.xz -C /
  1. Prepare the containerd
#go get github.com/containerd/containerd
#pushd $GOPATH/src/github.com/containerd/containerd
#git checkout v1.3.4
#make && make install

Create the containerd configure

#mkdir /etc/containerd
#containerd config default > /etc/containerd/config.toml
  1. Prepare the kata configure file
#mkdir /etc/kata-containers
#cp /opt/kata/share/defaults/kata-containers/configuration.toml /etc/kata-containers/
  1. Set the PATH env for containerd to find kata shimv2 binary
#export PATH=$PATH:/opt/kata/bin
  1. Pull a docker image to run. Here take the alpine image an example.
#ctr images pull docker.io/library/alpine:latest
  1. Run a container using the kata shimv2 as below:
#sudo ctr run -t --rm --runtime io.containerd.kata.v2 docker.io/library/alpine:latest test_container sh