Repository: github.com/detoxd/detoxd | Images: images/ubuntu
Ubuntu is a popular Linux distribution based on Debian, developed by Canonical Ltd. Known for its ease of use, extensive package repositories, and strong community support, Ubuntu is one of the most widely used Linux distributions for servers, containers, cloud, and development environments.
Ubuntu includes several security features:
Full distributions have larger attack surfaces:
apt-get update
apt-get upgrade -y --no-install-recommends
apt-get dist-upgrade -y
Removes unnecessary and potentially dangerous packages:
wget - Network downloadscurl - Network transfersnetcat* - Network utilitytelnet* - Insecure remote accessRemoves unnecessary system accounts:
games - Gaming accountgnats - Bug reportingirc - IRC serviceslist - Mailing listsnews - Usenetproxy - Proxy servicesuucp - UUCPFROM detoxd/ubuntu:24.04-detox.1
# Install only what's needed
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Create non-root user
RUN useradd -r -u 1000 -s /sbin/nologin appuser
# Copy application
COPY --chown=appuser:appuser app /app
# Switch to non-root
USER appuser
WORKDIR /app
CMD ["./myapp"]
# Use slim variant when possible
FROM detoxd/ubuntu:24.04-detox.1
# Chain commands to reduce layers
RUN apt-get update && \
apt-get install -y --no-install-recommends package && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Scan for vulnerabilities
trivy image detoxd/ubuntu:24.04-detox.1
# Check for rootkits (if chkrootkit installed)
chkrootkit
# Audit system configuration
lynis audit system
docker run \
--read-only \
--cap-drop=ALL \
--security-opt=no-new-privileges:true \
--tmpfs /tmp:rw,noexec,nosuid,size=64m \
--user 1000:1000 \
detoxd/ubuntu:24.04-detox.1
| Feature | Standard Ubuntu | Detoxd Ubuntu |
|---|---|---|
| Security patches | Manual | Applied |
| wget/curl | Installed | Removed |
| netcat/telnet | May be present | Removed |
| Legacy users | Present | Removed |
| Setuid binaries | Present | Removed |
| apt cache | Present | Cleaned |
| Shell history | May exist | Removed |
| Version | Codename | Support Until |
|---|---|---|
| 24.04 LTS | Noble Numbat | April 2029 |
| 24.10 | Oracular Oriole | July 2025 |
Content type
Image
Digest
sha256:70d384e65…
Size
29.5 MB
Last updated
7 months ago
docker pull detoxd/ubuntu:24.04-detox.1