In order to install the required container runtime, Moby, the repository on our Raspberry Pi needs to be modified.
To begin, do the following:
- Open up a Terminal on the Raspberry Pi by clicking on the icon at the top left of the screen (this should be the fourth icon from the left).
- Type the following code and hit Enter:
curl https://packages.microsoft.com/config/debian/stretch/multiarch/prod.list > ./microsoft-prod.list
- If you look in the current directory (the default is /home/pi), you will see that a file named microsoft-prod.list was created. We need to copy this file to the appropriate directory. To do this, type in the following command and hit Enter:
sudo cp ./microsoft-prod.list /etc/apt/sources.list.d/
- We now need to install the Microsoft GPG public key. Type the following code and hit Enter to download a key:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
- Copy this key to the appropriate location with the following command:
sudo cp ./microsoft.gpg /etc/apt/trusted.gpg.d/
We are now ready to install the container runtime required for Azure IoT Edge.