crio-lxc

module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2019 License: Apache-2.0

README

crio-lxc

This is a wrapper around LXC which can be used as a drop-in container runtime replacement for use by CRI-O.

To use this, simply build it:

make

Then specify the crio-lxc binary you just built as the value for default_runtime in the crio.runtime section of /etc/crio/crio.conf.

Notes

Note that you must have a new enough liblxc, one which supports the "lxc.rootfs.managed" key. 3.0.3 is not new enough, 3.1 is. On Ubuntu, you can upgrade using the ubuntu-lxc/lxc-git-master PPA. Arch and OpenSUSE tumbleweed should be uptodate.

Tests

To run the 'basic' test, you'll need to build cri-o and CNI.

mkdir ~/packages
cd packages
git clone https://github.com/kubernetes-sigs/cri-o
cd cri-o
make
cd ..
git clone https://github.com/containernetworking/cni
git clone https://github.com/containernetworking/plugins cni-plugins
cd cni-plugins
./build_linux.sh

You'll also need crictl. Download the tarball, extract it, and copy crictl to /usr/bin:

wget https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.14.0/crictl-v1.14.0-linux-amd64.tar.gz
tar zxf crictl-v1.14.0-linux-amd64.tar.gz
sudo cp crictl /usr/bin

You'll also need conntrack installed:

apt install conntrack

Directories

Path Synopsis
* This file is a little bit strange.
* This file is a little bit strange.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL