sudo apt-get purge docker-compose
sudo apt-get purge docker-ce
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
Download Docker .deb file:
curl -O https://download.docker.com/linux/ubuntu/dists/xenial/pool/edge/amd64/docker-ce_17.05.0~ce-0~ubuntu-xenial_amd64.deb
Install Docker:
sudo dpkg -i docker-ce_17.05.0~ce-0~ubuntu-xenial_amd64.deb
sudo curl -fSL http://github.com/docker/compose/releases/download/1.13.0/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose