码迷,mamicode.com
首页 > 其他好文 > 详细

centos 6 编译 docker

时间:2015-07-21 13:03:08      阅读:537      评论:0      收藏:0      [点我收藏+]

标签:

docker centos 编译
下载最新源代码,至目录:GOPATH/src/github.com/docker
cd GOPATH/src/github.com/docker/docker
go get -v ...


下载golang.org/x/net/websocket失败
cd GOPATH/src/
mkdir -p golang.org/x/net/
cd golang.org/x/net
git clone https://github.com/golang/net.git ./
下载gopkg.in/fsnotify.v1失败
cd GOPATH/src/
mkdir -p gopkg.in/fsnotify.v1
cd gopkg.in/fsnotify.v1
git clone https://github.com/go-fsnotify/fsnotify.git ./
下载gopkg.in/yaml.v2失败
cd GOPATH/src/
mkdir -p gopkg.in/yaml.v2
cd gopkg.in/yaml.v2
git clone https://github.com/go-yaml/yaml.git ./
下载gopkg.in/check.v1失败
cd GOPATH/src/
mkdir -p gopkg.in/check.v1
cd gopkg.in/check.v1
git clone https://github.com/go-check/check.git ./
下载golang.org/x/crypto/bcrypt失败
cd GOPATH/src/
mkdir -p golang.org/x/crypto/
cd golang.org/x/crypto
git clone https://github.com/golang/crypto.git ./

cd GOPATH/src/github.com/docker/docker
./hack/make.sh binary


缺少code.google.com/p/gosqlite/sqlite3
cd GOPATH/src/
mkdir -p code.google.com/p/gosqlite/sqlite3
cd code.google.com/p/gosqlite/sqlite3
git clone https://github.com/mattn/go-sqlite3.git ./

btrfs错误
yum install btrfs-progs
wget https://www.kernel.org/pub/linux/kernel/people/mason/btrfs-progs/btrfs-progs-v3.16.tar.gz
tar xzf btrfs-progs-v3.16.tar.gz
cd btrfs-progs-v3.16
rm -fr Documentation/ tests/
cd ..
mv btrfs-progs-v3.16 /usr/include/btrfs

libdevmapper.h错误
git clone -b v2_02_103 https://git.fedorahosted.org/git/lvm2.git /usr/local/lvm2
cd /usr/local/lvm2
./configure
make device-mapper
make install_device-mapper

centos 6 编译 docker

标签:

原文地址:http://my.oschina.net/u/659405/blog/481151

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!