As this repo is specific to the kata-containers 2.x, let's stop
mentioning / referring to the 1.x here, including how to setup and use
the snap package for 1.x.
Fixes: #1601
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 4a38ff41f0
)
2.1 KiB
Kata Containers snap package
- Install Kata Containers
- Configure Kata Containers
- Integration with shim v2 Container Engines
- Remove Kata Containers snap package
Install Kata Containers
Kata Containers can be installed in any Linux distribution that supports snapd.
Run the following command to install Kata Containers:
$ sudo snap install kata-containers --candidate --classic
Configure Kata Containers
By default Kata Containers snap image is mounted at /snap/kata-containers
as a
read-only file system, therefore default configuration file can not be edited.
Fortunately Kata Containers supports loading a configuration file from another
path than the default.
$ sudo mkdir -p /etc/kata-containers
$ sudo cp /snap/kata-containers/current/usr/share/defaults/kata-containers/configuration.toml /etc/kata-containers/
$ $EDITOR /etc/kata-containers/configuration.toml
Integration with shim v2 Container Engines
The Container engine daemon (cri-o
, containerd
, etc) needs to be able to find the
containerd-shim-kata-v2
binary to allow Kata Containers to be created.
Run the following command to create a symbolic link to the shim v2 binary.
$ sudo ln -sf /snap/kata-containers/current/usr/bin/containerd-shim-kata-v2 /usr/local/bin/containerd-shim-kata-v2
Once the symbolic link has been created and the engine daemon configured, io.containerd.kata.v2
can be used as runtime.
Read the following documents to know how to run Kata Containers 2.x with containerd
.
Remove Kata Containers snap package
Run the following command to remove the Kata Containers snap:
$ sudo snap remove kata-containers