On Raspbian
Install Docker
sudo curl -sSL https://get.docker.com | sh
Add Permissions to run Docker Commands
sudo usermod -aG docker pi
Test Docker Install
docker run hello-world
Install Docker-Compose
sudo apt-get install libffi-dev libssl-dev
sudo apt-get install -y python python-pip
sudo pip install docker-compose
Change the Hostname
sudo raspi-config
On Ubuntu
Install Docker
sudo apt-get install docker.io
Add Permission to run Docker Commands
sudo usermod -aG docker pi
Install Docker-Compose
sudo apt-get install docker-compose
Change the Hostname
sudo nano /etc/hostname
sudo nano /etc/hosts