Toradex provides minimal container images that extend the slim release of Debian with useful features for TorizonCore, limiting dependencies and packages only for the required ones.
See Debian Container for Torizon page to find more information about the available images and how to use them.
In this module you will:
For this Getting Started 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.
On module's terminal, pull Toradex's Debian image:
# docker pull torizon/arm32v7-debian-base
The command above downloads and stores a container image in its latest version to be used on the board.
torizon/arm32v7-debian-base is a minimal Debian-based image intended to be used on Toradex's Computer on Modules (COMs).
Instantiate and run a new container based on the pulled image:
# docker run --rm -it -v /var/run/dbus:/var/run/dbus -v /dev:/dev torizon/arm32v7-debian-base
The flags on this command give the container the necessary permissions to access hardware features from the host. For more information about what these flags do, see the FAQ session at the end of this article.
Now the container is running interactively and its terminal is shown. Update the list of available packages:
## apt update
apt install command inside the container to install the
nano text editor, for instance:
## apt install nano
Check that the package you've installed is available:
You are now inside the
nano text editor. Press
Ctrl + x to exit it.
You can exit the container by either typing
exit on the command-line or by pressing
Ctrl + d:
You are now ready to start working with a container. You may want to install and run applications inside this container we just created. However, note that all the applications installed and all the data modifications made after the start of a container will be lost when this container exits (i.e. stops its execution). For this reason, the method shown in this article may be useful for debugging/test, but it is not practical for development.
In the next sections of this tutorial, you will learn how to install Docker in your development PC, learn proper ways to develop applications for TorizonCore and put them inside container images.