1.1 Raspbian OS with Docker
Eugen Mayer edited this page Jan 11, 2018
·
12 revisions
- Download the raspbian lite image from the official site or you the latest image direct download link
- Put it on your SD card like
sudo dd if=2016-11-25-raspbian-jessie-lite.img of=/dev/disk2
- be sure to change /dev/disk2 to your USB-Device name ( /dev/sdb or whatever ) and if needed, then image name, depending on when you downloaded it.
We follow the very basic official installation guide - check it out yourself, if you need more detailed explanation / examples.
- Put the SD drive into your RPI, connect HDMI since we do not have shell access yet
- Boot the RPI, login using
user: pi
andpassword: raspberry
- Change your password using
passwd pi
to be able to better remember your password - Enter
sudo raspi-config
in the terminal, no go toAdvanced Options
and then selectUpdate
- After the tool updated, run
sudo raspi-config
again, now move on with then next point - Select
Interface Options
, then navigate toSSH
, pressEnter
and selectEnable or disable ssh server
- official guide, slightly outdated - Configure your network. DHCP is active, so either plug-in your ethernet cable or configure WLAN using this guide. Tip: You should either use your router or configure raspbian to assign the RPI a static IP.
- Install the firmware updater and run it:
sudo apt-get install -y rpi-update
and run itsudo rpi-update
- Now reboot your RPI
sudo reboot
and connect to it using SSH using your shell. On windows, use putty or whatever (out of scope/interest)
ssh pi@<yourip>
From now on i will refer to your ip as rpihost
- so everytime you see that, enter your ip.
ssh pi@rpihost
As easy as pie
sudo curl -sSL https://get.docker.com | sh
And now let our pi
user be able to use docker
sudo usermod -aG docker pi
No login out of your ssh shell and login again, so you can run docker ps
without issues
See this for reference. Thank you Hypriot!
sudo apt-get update
sudo apt-get -y install python-pip
sudo pip install docker-compose
- Only with ZWave GPIO Controllers: Enable our pi user to use the UART0 module:
sudo usermod -a -G dialout "pi"
- If you have as Raspberry 3 with a GPIO controller ( e.g razberry ) see [[Disable Bluetooth|RPI3.-Raspberry-PI-3---GPIO-Zwave-controller-only:-Disable-Bluetooth]]
- Now install Home Assistan Docker image
- Check the issue queue for current issues