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
- untar the kata2.0 alpha released tarball into /opt directory:
#tar xvf kata-static-2.0.0-alpha1-x86_64.tar.xz -C /
- 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
- Prepare the kata configure file
#mkdir /etc/kata-containers
#cp /opt/kata/share/defaults/kata-containers/configuration.toml /etc/kata-containers/
- Set the PATH env for containerd to find kata shimv2 binary
#export PATH=$PATH:/opt/kata/bin
- Pull a docker image to run. Here take the alpine image an example.
#ctr images pull docker.io/library/alpine:latest
- 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