#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'

apt-cache madison docker-engine

apt-get -o Dpkg::Options::="--force-confnew" install -y docker-engine=${DOCKER_VERSION}

curl -L "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

docker version

docker-compose version

#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'

apt-get update
apt-get -o Dpkg::Options::="--force-confnew" install -y docker-engine=${DOCKER_VERSION}

curl -L "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

--- 
+++ 
@@ -2,13 +2,8 @@
 set -euo pipefail
 IFS=$'\n\t'
 
-apt-cache madison docker-engine
-
+apt-get update
 apt-get -o Dpkg::Options::="--force-confnew" install -y docker-engine=${DOCKER_VERSION}
 
 curl -L "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" > /usr/local/bin/docker-compose
 chmod +x /usr/local/bin/docker-compose
-
-docker version
-
-docker-compose version
Add debug output to install script
