See the newer instructions here:
- You already have Clear Containers and Docker installed.
go get -d github.com/kata-containers/proxy
cd $GOPATH/src/github.com/kata-containers/proxy && make && sudo make install
go get -d github.com/kata-containers/shim
cd $GOPATH/src/github.com/kata-containers/shim && make && sudo make install
go get -d github.com/clearcontainers/runtime
cd $GOPATH/src/github.com/clearcontainers/runtime && make build-kata-system && sudo make install-kata-system
sudo sed -i -e 's/^# *\(enable_debug\).*=.*$/\1 = true/g' /usr/share/defaults/kata-containers/configuration.toml
go get -d github.com/kata-containers/agent
cd $GOPATH/src/github.com/kata-containers/agent && make
go get -d github.com/kata-containers/osbuilder
cd $GOPATH/src/github.com/kata-containers/osbuilder/rootfs-builder
script -fec 'sudo -E GOPATH=$GOPATH ./rootfs.sh clearlinux USE_DOCKER=true'
sudo install -m 0755 -o root -g root -t rootfs/bin ../../agent/kata-agent
sudo install -m 0444 ../../agent/kata-containers.target rootfs/usr/lib/systemd/system/
sudo install -m 0444 ../../agent/kata-containers.target rootfs/usr/lib/systemd/system/
cd $GOPATH/src/github.com/kata-containers/osbuilder/image-builder
script -fec 'sudo ./image_builder.sh ../rootfs-builder/rootfs'
commit=$(git log --format=%h -1 HEAD)
date=$(date +%Y-%m-%d-%T.%N%z)
image="kata-containers-${date}-${commit}"
sudo install -o root -g root -m 0640 -D kata-containers.img "/usr/share/kata-containers/${image}"
(cd /usr/share/kata-containers && sudo rm -f kata-containers.img && sudo ln -s "$image" kata-containers.img)
sudo cp /usr/share/clear-containers/vmlinu*.container /usr/share/kata-containers/
sudo sed -i 's!^\(ExecStart=[^$].*$\)!\1 --add-runtime kata-runtime=/usr/local/bin/kata-runtime!g' /etc/systemd/system/docker.service.d/clear-containers.conf
sudo docker run -ti --runtime kata-runtime busybox sh