Skip to content

Instantly share code, notes, and snippets.

@CT83
Created May 23, 2019 12:46
Show Gist options
  • Save CT83/0a3825402edf9ed1d6af951da5f768d1 to your computer and use it in GitHub Desktop.
Save CT83/0a3825402edf9ed1d6af951da5f768d1 to your computer and use it in GitHub Desktop.
Installing Docker and Docker-Compose on Raspberry Pi in 6 Simple Steps

Installing Docker and Docker Compose on the Raspberry Pi in 6 Simple Steps

This is probably the quickest and the easiest ways to get Docker and Docker Compose running on the Raspberry Pi. (Tested with Raspberry Pi B+ Rev 1.2)

After searching the Inter-Webs for hours and having several things not work for me, I decided something needed to be done about it.

Steps

  1. curl -sSL https://get.docker.com | sh Install Docker
  2. sudo usermod -aG docker pi Add permission to Pi User to run Docker Commands
  3. docker run hello-world Test Docker installation
  4. sudo apt-get install libffi-dev IMPORTANT! Install proper dependencies
  5. sudo apt-get install -y python python-pip
  6. sudo pip install docker-compose Install Docker Compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment