To develop applications for Torizon, you need to have some prerequisites installed in your development PC. That means installing Docker and enabling Arm emulation. See more information on Configure Build Environment for Torizon Containers.
In this section, you will:
For this Quickstart Guide:
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.
Please refer to the Install the Windows Subsystem for Linux (WSL2) section.
Head to the Docker Hub website and create an account.
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.
On your computer terminal, execute:
$ docker --version
This lets you check whether the installation was successful or not.
Enable Arm emulation in your PC:
$ docker run --rm -it --privileged torizon/binfmt
Warning: This operation will run a privileged container, this will run for the time required to enable Arm emulation using binfmt. It should be a safe operation.
Make sure you can run the hello-world image in your Linux PC before going to the next lessons:
$ docker run hello-world
As mentioned in Docker's documentation, you will need to add your user to the docker group to avoid needing root privileges.
Before you proceed, it is recommended checking your OS username:
$ sudo addgroup <your username> docker
Warning: You need to log-out and log-in to the Linux sessing (or reboot machine) after the commands above for the changes take effect.