Development & Programming¶
- Python - High-level interpreted programming language
- Docker - Create, deploy, and run applications using containers
- Docker Compose - Define and run multi-container Docker applications
- Portainer - Lightweight management UI, managing your Docker host or Swarm cluster
How do I run DietPi-Software and install optimised software?
To install any of the DietPi optimised software listed below run from the command line:
Choose Software Optimised and select one or more items. Finally click on
Install. DietPi will do all the necessary steps to install and start these software items.
To see all the DietPi configurations options, review DietPi Tools section.
Python is a text based interpreted programming language with object oriented programming options for general purpose applications.
The install option explicitly installs only Python 3.
pip3 Python package manager and development headers are included.
To use the
pip package manager, a typical usage will be
pip3 install -U <module>.
Official documentation, from beginner to advanced: https://www.python.org/doc/
In 2013, Docker introduced containers. These are a standardized unit of software that allows developers to isolate their application from the environment. Docker is de facto standard to build and share containerized apps - from single board computers (SBC), to desktop or cloud.
A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings.
Docker logs can be accessed using next command:
journalctl -u docker -u containerd
The location of the Docker configuration files:
Official documentation: https://docs.docker.com/get-started/overview
Configuration file: https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file
For a quick intro, see DietPi Docker Setup on Raspberry Pi 3 B Plus:
Docker Compose is a Docker tool used to define and run multi-container applications. With Compose, you use a
YAML file to create and configure your application’s services from this configuration file.
docker-compose is an excellent tool for development, testing, continuous integration (CI) workflows, and staging environments.
Docker (individual container) vs. Docker-Compose (several containers) - source: A beginner’s guide to Docker
The tool is available soon after the installation. In case you need to upgrade it, here is the command:
sudo pip3 install docker-compose --upgrade
Official documentation: https://docs.docker.com/compose
Getting started: https://docs.docker.com/compose/gettingstarted
Sample apps with Compose: https://docs.docker.com/compose/samples-for-compose/
Release notes: https://docs.docker.com/compose/release-notes/
Portainer simplifies your Docker container management via Portainer web interface. It enables faster deploy of the applications and it gives real time visibility.
The web interface is accessible via port 9002:
- Portainer starts automatically after installation. To view the web interface, open the web browser using next URL:
- If you have basic questions on how to use Portainer, please read the beginner guide: https://codeopolis.com/posts/beginners-guide-to-portainer/.
Update to latest version:
dietpi-software reinstall 185