Search by Tags

Install the Build Environment for Torizon - Linux Host

 

Your progress

 

Overview

In this section, you will:

  • Verify if Docker is correctly installed on your PC.
  • Get used to Docker's official documentation.
Typographic Conventions

Prerequisites

For this Getting Started Guide:

  • Successfully completed the previous lesson from this guide.
  • Linux Machine (We tested this guide on Ubuntu 18.04 LTS. However, it can work on other distributions.).

Note: Carefully read this module's cover page clicking on "Module 2: First Steps with Torizon" on the left menu bar before starting this lesson.

Step 1

Head to the Docker Hub and create an account.

Step 2

You need to install Docker on the host machine to be able to synchronize with your Docker Hub account on the next lessons.

To install Docker follow the instructions on the Official Docker Page

Step 3

Enable Arm emulation in your PC:

$ wget http://ftp.us.debian.org/debian/pool/main/b/binfmt-support/binfmt-support_2.2.0-2_amd64.deb
$ wget http://ftp.us.debian.org/debian/pool/main/q/qemu/qemu-user-static_3.1+dfsg-8+deb10u2_amd64.deb
$ sudo apt install ./binfmt-support_2.2.0-2_amd64.deb
$ sudo apt install ./qemu-user-static_3.1+dfsg-8+deb10u2_amd64.deb

Note: For detailed information about how to install the build environment for Torizon, refer to [Configure Build Environment for Torizon Containers](https://developer.toradex.com/knowledge-base/configure-build-environment-for-torizon-containers#Enable_Arm _emulation).

Step 4

On the terminal execute:

docker --version

This lets you check whether the installation was successful or not.

Step 5

Make sure you can run the hello-world image in your Linux PC before going to the next lessons:

docker run hello-world

Step 6

As mentioned in Docker's documentation, you will need to add your user to docker group to avoid needing root privileges.

Before you proceed, it is recommended checking your OS username:

$ whoami

On Debian-based distributions, like Ubuntu, you should use the addgroup command:

$ sudo addgroup <your username> docker

Note: You need to log-out and log-in to the Linux sessing (or reboot machine) after the commands above for the changes take effect.

FAQ

Is the hello-world image the same as the one used on the last module?
Are you having problems with Docker?