-
-
Save kirs/44a84b97be23d0b70aeae2203a60169a to your computer and use it in GitHub Desktop.
criu setup Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt update | |
apt upgrade | |
apt install build-essential | |
apt install pkg-config | |
apt install libnet-dev python-yaml libaio-dev | |
apt install libprotobuf-dev libprotobuf-c0-dev protobuf-c-compiler protobuf-compiler python-protobuf libnl-3-dev libcap-dev python-future | |
# criu install | |
curl -O -sSL http://download.openvz.org/criu/criu-3.10.tar.bz2 | |
tar xjf criu-3.10.tar.bz2 | |
cd criu-3.10 | |
make | |
cp ./criu/criu /usr/local/bin | |
cd | |
# test with current Docker release | |
curl -fsSL get.docker.com -o get-docker.sh | |
sh get-docker.sh | |
echo '{"experimental": true, "debug": true}' > /etc/docker/daemon.json | |
systemctl restart docker | |
# definitely failing! seems to be containerd issue | |
git clone https://github.com/containerd/containerd.git | |
mkdir -p go/src/github.com/containerd | |
cd go/src/github.com/containerd | |
cd containerd | |
apt install golang libseccomp-dev | |
make | |
systemctl stop docker | |
cp bin/containerd /usr/bin/docker-containerd | |
systemctl start docker | |
# build master moby | |
git clone https://github.com/moby/moby.git | |
cd moby | |
make | |
systemctl stop docker | |
cp bundles/binary-daemon/dockerd-dev /usr/bin/dockerd | |
systemctl start docker | |
cd | |
# at this point checkpoints working but only if running with net=none | |
docker run --net=none --security-opt=seccomp:unconfined --name cont -d busybox /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done' | |
docker checkpoint create cont cp0 | |
docker start --checkpoint cp0 cont |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment