Overview
Update all Docker base images to the latest stable releases to ensure security, stability, and consistency across the Torrust Tracker Deployer environment. This is a periodic maintenance task to keep the application secure and aligned with current best practices for container base image selection.
This task was motivated by the Torrust Tracker project's recent update to use trixie as the stable Debian version (see PR #1629), ensuring consistency across the ecosystem.
Current State
Base Images in Use
-
docker/backup/Dockerfile
- Current:
debian:trixie-slim ✅ (Already updated)
-
docker/deployer/Dockerfile
- Current:
rust:bookworm → Needs: Update to rust:trixie
-
docker/provisioned-instance/Dockerfile
- Current:
ubuntu:24.04 (LTS) → Verify current status
-
docker/ssh-server/Dockerfile
- Current:
alpine:3.23.3 → Check for newer releases
Implementation Plan
Phase 1: Review and Plan (Security Scanning)
For each Docker image:
Phase 2: Update Dockerfiles
Phase 3: Security Scanning
For each updated image:
Phase 4: Testing
Phase 5: Documentation and Commit
Acceptance Criteria
Quality Checks:
Base Image Updates:
Security Scanning:
Testing:
Related Documentation
Labels: maintenance, docker, security, devops
Overview
Update all Docker base images to the latest stable releases to ensure security, stability, and consistency across the Torrust Tracker Deployer environment. This is a periodic maintenance task to keep the application secure and aligned with current best practices for container base image selection.
This task was motivated by the Torrust Tracker project's recent update to use
trixieas the stable Debian version (see PR #1629), ensuring consistency across the ecosystem.Current State
Base Images in Use
docker/backup/Dockerfile
debian:trixie-slim✅ (Already updated)docker/deployer/Dockerfile
rust:bookworm→ Needs: Update torust:trixiedocker/provisioned-instance/Dockerfile
ubuntu:24.04(LTS) → Verify current statusdocker/ssh-server/Dockerfile
alpine:3.23.3→ Check for newer releasesImplementation Plan
Phase 1: Review and Plan (Security Scanning)
For each Docker image:
Phase 2: Update Dockerfiles
docker/deployer/Dockerfile:rust:bookworm→rust:trixiedocker/provisioned-instance/Dockerfile: Verify/update Ubuntudocker/ssh-server/Dockerfile: Verify/update Alpinedocker/backup/Dockerfile: Already ontrixie-slim✅Phase 3: Security Scanning
For each updated image:
trivy image --severity HIGH,CRITICAL {image}docs/security/docker/scans/Phase 4: Testing
./scripts/pre-commit.shPhase 5: Documentation and Commit
Acceptance Criteria
Quality Checks:
./scripts/pre-commit.shBase Image Updates:
docker/deployer/Dockerfile: Updated torust:trixiedocker/provisioned-instance/Dockerfile: Verified/updateddocker/ssh-server/Dockerfile: Verified/updateddocker/backup/Dockerfile: Verified ontrixie-slimSecurity Scanning:
docs/security/docker/scans/Testing:
Related Documentation
Labels:
maintenance,docker,security,devops