Skip to content

Instantly share code, notes, and snippets.

@mattes
Last active August 29, 2015 14:03
Show Gist options
  • Save mattes/a83b887e0e79a461ce95 to your computer and use it in GitHub Desktop.
Save mattes/a83b887e0e79a461ce95 to your computer and use it in GitHub Desktop.
Update Docker and Boot2docker-CLI
# curl https://gist.githubusercontent.com/mattes/a83b887e0e79a461ce95/raw/update.sh | bash
boot2docker version
docker version
# update docker
(
cd /tmp
wget http://get.docker.io/builds/Darwin/x86_64/docker-latest.tgz
tar -xvf docker-latest.tgz
chmod +x usr/local/bin/docker
rm -f /usr/local/bin/docker
mv usr/local/bin/docker /usr/local/bin/docker
rm -rf usr
rm -f docker-latest.tgz
)
# update boot2docker-cli
(
cd $GOPATH
cd src/github.com/boot2docker
rm -rf boot2docker-cli
go get github.com/boot2docker/boot2docker-cli
cd boot2docker-cli
rm -f $GOPATH/bin/boot2docker-cli
make goinstall
mv $GOPATH/bin/boot2docker-cli /usr/local/bin/boot2docker
)
boot2docker version
docker version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment