github.com/rohankumardubey/nomad@v0.11.8/scripts/update_docker.sh (about) 1 #!/bin/bash 2 3 set -ex 4 5 DOCKER_VERSION="1.10.3" 6 7 sudo stop docker 8 sudo rm -rf /var/lib/docker 9 sudo rm -f "$(command -v docker)" 10 sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D 11 echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list 12 sudo apt-get update 13 sudo apt-get install -y --force-yes -o Dpkg::Options::="--force-confnew" docker-engine="$DOCKER_VERSION-0~$(lsb_release -cs)" 14 15 docker version