Last active
February 4, 2016 18:34
-
-
Save viranch/7d3495bfdc9e54b3d5ff to your computer and use it in GitHub Desktop.
Build dynamic docker 1.7.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# stop | |
docker stop `docker ps -q` | |
sudo service docker stop | |
# dependencies | |
sudo apt-get remove -qy lxc-docker && sudo apt-get autoremove -qy | |
sudo apt-get install -qy libdevmapper-dev golang-gosqlite-dev uuid-dev btrfs-tools git gcc --no-install-recommends | |
# golang | |
curl -sSL https://golang.org/dl/go1.4.2.linux-amd64.tar.gz | sudo tar -C /usr/local -xz | |
PATH=$PATH:/usr/local/go/bin | |
# build | |
cd /tmp; git clone git://github.com/docker/docker; cd docker | |
DOCKER_VER=v1.7.0 | |
git branch release-$DOCKER_VER; git checkout release-$DOCKER_VER; git checkout $DOCKER_VER | |
AUTO_GOPATH=1 ./hack/make.sh dynbinary | |
# install | |
for bin in docker{,init}; do | |
sudo install -m 755 -o root -g root {bundles/1.7.0/dynbinary,/usr/bin}/$bin-1.7.0 | |
sudo ln -s /usr/bin/$bin{-1.7.0,} | |
done | |
# start docker | |
sudo service docker start | |
sleep 1; docker info | grep -i udev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment