Skip to content

Instantly share code, notes, and snippets.

@micheleorsi
Last active September 18, 2016 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micheleorsi/ecffbae71469d74e6620 to your computer and use it in GitHub Desktop.
Save micheleorsi/ecffbae71469d74e6620 to your computer and use it in GitHub Desktop.
Running docker on ARM processor (tested on Raspberry Pi 2 Model B)

Flash image to SD card

This is a list of disk images to flash on SD card in order to natively run docker on your Raspberry: hypriot download page:

From command line:

flash --hostname <host-name> <url-to-download-the-os-from>

Mount SD to Raspberry. After a while you can access through the name you assigned:

ssh pi@<host-name>.local

(password: raspberry)

Configure SSH access

Set-up SSH connection

ssh-copy-id pirate@black-pearl

Lock Down SSH

echo "" | sudo tee -a /etc/ssh/sshd_config 
echo "PermitRootLogin no" | sudo tee -a /etc/ssh/sshd_config 
echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config 
echo "AllowUsers pirate" | sudo tee -a /etc/ssh/sshd_config 

.. restart SSH

sudo service ssh restart

Test it

ssh -o PasswordAuthentication=YES -o PubkeyAuthentication=no pirate@<hostname>.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment