2016-02-05 21:59:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2016-03-19 05:18:59 +00:00
|
|
|
DOCKER_VERSION="1.10.3"
|
2016-02-05 22:03:38 +00:00
|
|
|
|
2016-02-05 21:48:27 +00:00
|
|
|
sudo stop docker
|
|
|
|
sudo rm -rf /var/lib/docker
|
2017-09-09 00:42:42 +00:00
|
|
|
sudo rm -f "$(which docker)"
|
2016-02-05 21:48:27 +00:00
|
|
|
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
|
|
|
|
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
|
|
|
|
sudo apt-get update
|
2017-09-09 00:42:42 +00:00
|
|
|
sudo apt-get install -y --force-yes -o Dpkg::Options::="--force-confnew" docker-engine="$DOCKER_VERSION-0~$(lsb_release -cs)"
|
2016-02-05 23:08:33 +00:00
|
|
|
|
|
|
|
docker version
|