This repository contains Docker images for multiple Ubuntu versions, maintained by Michael Buluma (Buluma). These images are designed to provide consistent, reliable Ubuntu base images for containerized applications and development environments.
The images follow the official Ubuntu Docker image patterns but include additional configurations to support systemd and Ansible usage within containers, making them particularly useful for testing and development scenarios.
- Multiple Ubuntu versions supported (14.04 through 26.04)
- Systemd-enabled containers for full service management
- Ansible-ready environment (with optional Ansible installation)
- Multi-architecture support (amd64, arm64, ppc64le, s390x, etc.)
- Regular automated builds and security updates
- Optimized for containerized environments while maintaining compatibility with traditional Ubuntu packages
20.04,focal,focal-20220612,latest(EOL: May 2025)22.04,jammy-20251013,jammy(EOL: June 2027)24.04,noble-20251013,noble,latest(EOL: May 2029)
23.04,lunar,lunar-20230314,devel(EOL: January 2024)25.04,plucky-20251001,plucky(EOL: January 2026)
14.04,trusty,trusty-20220612(EOL: April 2019)16.04,xenial,xenial-20220612(EOL: April 2021)18.04,bionic,bionic-20220612(EOL: May 2023)
21.04,hirsute,hirsute-20220612(EOL: January 2022)21.10,impish,impish-20220612(EOL: July 2022)22.10,kinetic,kinetic-20220612(EOL: July 2023)
25.10,questing-20251217,questing,rolling(EOL: July 2026)26.04,resolute-20251208,resolute,devel(Development)
To build a specific Ubuntu version:
cd ubuntu2004 # or any version directory
docker build -t ubuntu:20.04 .The images are designed to run with privileged access for systemd support:
# Run with systemd support
docker run --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro -it ubuntu:20.04
# Run with Ansible support
docker run --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro -it ubuntu:20.04 /lib/systemd/systemdEach Dockerfile follows a consistent pattern:
- Base image from official Ubuntu
- Install essential packages including systemd components
- Configure initctl faker for older Ubuntu versions
- Set up volumes for systemd functionality
- Define entrypoint and health checks
The images are configured to support systemd services by:
- Mounting
/sys/fs/cgroupas a volume - Using systemd as the init process (
/lib/systemd/systemdor/sbin/init) - Disabling problematic services like getty that consume CPU in containerized environments
Many images include Ansible support (often commented out by default) with:
- Python package installations
- Inventory configuration
- Service management capabilities
- Michael Buluma (Buluma)
- GitHub: https://github.com/buluma/ubuntu