Installing the repository configuration

In order to install the required container runtime, Moby, the repository on our Raspberry Pi needs to be modified.

To begin, do the following:

  1. 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).
  2. Type the following code and hit Enter:
curl https://packages.microsoft.com/config/debian/stretch/multiarch/prod.list > ./microsoft-prod.list
  1. 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/
  1. 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
  1. 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.103.183