2015-12-14 89 views
0

我從這個版本的此源代碼構建搬運工恢復:碼頭工人暫停使用criu

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

CD泊塢窗

#make build 
#make binary 


https://github.com/boucher/docker/tree/cr-combined

克隆代碼後然後將生成的文件@。/ bundles /../ docker複製到usr/bin目錄 After重新打開終端並再次啓動碼頭引擎。 它表明,我用我自己的內置版本,但是 這個版本應該不會在我建一個 1-關卡出現兩個主要的碼頭工人,命令 2-恢復

能否請你幫我,告訴我哪裏出了問題

回答

0

這裏是我做的:

$ 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 

希望這有助於。

+0

#嘗試此代替:使所有 # #警告! DOCKER_EXPERIMENTAL設置爲:構建實驗性功能 bundles /1.10.0-dev已經存在。刪除。 --->使捆綁包:二進制(捆綁/1.10.0-dev /二進制) 建設:捆綁/1.10.0-開發/二進制/碼頭 - 1.10.0-dev vendor/src/github.com /boltdb/bolt/bolt_unix_solaris.go:10:2:無法在以下任何位置找到軟件包「golang.org/x/sys/unix」: \t /usr/lib/go/src/pkg/golang.org/x/ sys/unix(來自$ GOROOT) \t /home/walid/docker/.gopath/src/golang.org/x/sys/unix(from $ GOPATH) \t/home/walid/docker/vendor/src/golang .org/x/sys/unix –

+0

你需要安裝criu嗎? –

+0

它現在可以工作,但我使用make命令而不是./hash/make.sh –