TrueNAS Scale 24.10: Rewolucja w Zarządzaniu Aplikacjami Docker
The latest version of TrueNAS Scale 24.10 (Electric Eel) has seen significant changes in its approach to application management, although for the end user, not much has changed. The key change is the switch from Kubernetes (K3S) to Docker Compose as the main container management tool.
Why Docker Compose?
Simplified configuration: Docker Compose offers simpler and easier to understand configuration compared to Kubernetes. This makes it easier to debug and manage applications.
W przypadku TrueNAS, gdzie skalowanie przez ilość węzłów nie występuje, Kubernetes były po prostu przesada. Docker Compose lepiej odpowiada na potrzeby jedno nodowego systemu dla Docker.
Aktualizacje: Although the migration to version 24.10 sometimes required minor tweaks, for the most part the updates are working properly.
Application Management in TrueNAS 24.10
Interface: In the TrueNAS interface, the user can access information about running applications, their status (updates, network traffic, resource usage). It is possible to stop, update and delete containers.
Application Details: The user can check the version of the application itself and the version of its implementation by TrueNAS. It is possible to edit the configuration, including setting resource limits (CPU, RAM).
Access to Containers: Można uzyskać dostęp konsoli aplikacji bezpośrednio z interfejsu TrueNAS. Użytkownik ma możliwość zalogowania się do kontenera przy pomocy CLI i przeglądać lub edytować jego zawartości.
Data Location: Application data is stored in the TrueNAS file system, even if the user has not specified a specific location. TrueNAS manages these volumes. You can check the mounting location of the container data in the settings.
Logi: w GUI dostępne są logi każdego kontenera, co znacząco ułatwia diagnostykę problemów.
Application Installation
TrueNAS Application Catalog: There is a catalog with ready-made applications that can be easily installed.
Instalacja niestandardowych kontenerów: Możliwa jest instalacja dowolnego kontenera poprzez wskazanie repozytorium, tagu i ustawienie parametrów. Konfiguracja wymaga trochę więcej wiedzy ponieważ wymaga ręcznego ustawienia wielu parametrów (hostname, sieć, porty, wolumeny).
Docker Compose: TrueNAS 24.10 natywnie wspiera Docker Compose, co umożliwia instalację kompleksowych aplikacji przy użyciu standardowego pliku YAML.
Advanced Features
Configuration preview: The user can access the detailed configuration of each container using the docker inspect command. There you can find information about mounted volumes, ports, environment variables and other parameters.
Additional environment variables: Użytkownik może dodawać dodatkowe zmienne środowiskowe do kontenerów jeśli jest taka konieczność dla bardzie złożonych konfiguracji.
Accessing the container via the CLI: Możliwy jest dostęp do kontenera przez CLI za pomocą polecenia docker exec jak w każdym innym systemie linux.
Logi z CLI: Możliwe jest wyświetlanie logów kontenerów w czasie rzeczywistym za pomocą docker logs -f.
Configuration: The application configuration is stored in the TrueNAS file system. For applications installed from the TrueNAS directory, the configuration is created on the fly. However, for applications installed using docker-compose, the configuration corresponds to a pasted YAML file.
Useful links:
WordPress docker compose exemple – https://github.com/docker/awesome-compose/blob/master/official-documentation-samples/wordpress/README.md Dokumentacja aplikacji w TrueNAS SCALE – https://www.truenas.com/docs/truenasapps/
Useful commands:
docker inspect [container]
docker stats
docker ps
Summary
TrueNAS Scale 24.10 introduces a significant simplification in container management by switching to Docker Compose. Users gain more control over applications and easier access to configuration and logs. Despite these changes, I suggest waiting for the new method to stabilize before migrating your existing docker instances. The new system offers an easier way to backup configurations and is simpler to debug.