下载最新源代码,至目录: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