Install docker

curl -sL https://get.docker.com/ | sudo sh -c
sudo usermod -aG docker userName #may want to log out and back in.

Install virtualbox

sudo apt install virtualbox
sudo reboot

Install docker-machine

curl -sL https://github.com/docker/machine/releases/download/v0.16.2/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine && \
chmod +x /tmp/docker-machine && \```
sudo cp /tmp/docker-machine /usr/local/bin/docker-machine

Install docker-compose

$ sudo curl -sL "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
sudo chmod +x /usr/local/bin/docker-compose

Install All “One liner”

$ curl -sL https://get.docker.com/ | sudo sh -c && \
sudo apt install virtualbox && \
curl -sL https://github.com/docker/machine/releases/download/v0.16.2/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine && \
chmod +x /tmp/docker-machine && \
sudo cp /tmp/docker-machine /usr/local/bin/docker-machine && \
sudo curl -sL "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
sudo chmod +x /usr/local/bin/docker-compose