Skip to content

isabella232/crio-lxc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 somewhere in your path:

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/local/bin # or ~/.local/bin, etc.

You'll also need conntrack installed:

apt install conntrack

About

CRI-O support for lxc

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 83.3%
  • Shell 14.3%
  • Makefile 2.4%