Skip to content

Instantly share code, notes, and snippets.

@justincormack
Created September 5, 2018 14:41
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save justincormack/1902f2eb7ac085fa69a8577a70c6f27f to your computer and use it in GitHub Desktop.
Save justincormack/1902f2eb7ac085fa69a8577a70c6f27f to your computer and use it in GitHub Desktop.
criu setup Ubuntu 18.04
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
@mind-mind
Copy link

is it work?

@Naveen04jan
Copy link

Yes it is working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment