docker suspend and resume using criu

拥有回忆 提交于 2019-11-28 13:50:08

问题


I am building docker from this version of this source code:
https://github.com/boucher/docker/tree/cr-combined

after cloning the code :

git clone -b cr-combined --single-branch https://github.com/boucher/docker.git

cd docker

#make build
#make binary

And then copied the resulting file @./bundles/../docker to the usr/bin directory After reopening the terminal and starting the docker engine again. its shows that i am using my own built version but This version should have two main docker commands that won't show up in my built one 1- checkpoint 2- restore

could you please help me and tell me where it went wrong


回答1:


Here is what I do:

$ git clone https://github.com/boucher/docker
$ cd docker
$ git checkout cr-combined
$ env AUTO_GOPATH=1 DOCKER_EXPERIMENTAL=1 \
    DOCKER_BUILDTAGS='exclude_graphdriver_btrfs \
    exclude_graphdriver_devicemapper' ./hack/make.sh binary
$ ./bundles/1.10.0-dev/binary/docker-1.10.0-dev  --help | grep checkpoint
checkpoint Checkpoint one or more running containers
restore    Restore one or more checkpointed containers

Hope this helps.



来源:https://stackoverflow.com/questions/34278619/docker-suspend-and-resume-using-criu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!