Skip to content

Instantly share code, notes, and snippets.

@ailispaw
Last active November 19, 2015 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ailispaw/c0626754d167d6dc5de6 to your computer and use it in GitHub Desktop.
Save ailispaw/c0626754d167d6dc5de6 to your computer and use it in GitHub Desktop.
CRIU
FROM ubuntu:14.04.3
RUN apt-get update && \
apt-get install -y curl bsdmainutils build-essential && \
apt-get install -y libprotobuf-dev libprotobuf-c0-dev protobuf-c-compiler protobuf-compiler
RUN mkdir /criu
WORKDIR /criu
ENV CRIU 1.7.2
RUN curl http://download.openvz.org/criu/criu-$CRIU.tar.bz2 | tar -jxf-
RUN make -j $(nproc) -C criu-$CRIU criu
RUN cp criu-$CRIU/criu /usr/local/sbin/
@ailispaw
Copy link
Author

$ docker build -t criu:1.7.2 .
$ docker run -it --rm --privileged criu:1.7.2 bash
root@ceb3acb794f2:/criu# criu check
Looks good.
root@ceb3acb794f2:/criu#

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