$ show phusion/baseimage-docker
phusion/baseimage-docker is a specialized Ubuntu base image optimized for Docker containers. It solves common Docker container problems including the PID 1 zombie reaping issue (via a custom /sbin/my_init process), syslog blackhole problem (using syslog-ng that forwards logs to docker logs), and APT incompatibilities. The image provides service supervision through runit, tools for running processes as different users (setuser), easy SSH access (optional), and environment variable management. It's designed to be used as a base image for Docker applications, offering a minimal but production-ready Ubuntu environment.
The LLM identified 3 files worth highlighting for reuse:
The custom init process (PID 1) that correctly handles zombie reaping and signal forwarding in Docker containers. Manages environment variables through /etc/container_environment, executes startup scripts, supervises runit services, and provides graceful shutdown with configurable timeouts. Solves the fundamental PID 1 problem in Docker.
A lightweight tool to run commands as different users, simpler and with smaller attack surface than sudo. Correctly sets $HOME, USER, UID, and initializes groups. Provides a safe way to run processes as non-root users in containers, improving security through privilege separation.
Apt installer helper that automatically cleans up after package installation. Combines apt-get update, install, autoremove, clean, and apt list removal in a single operation to minimize Docker image layers. Essential for creating efficient Dockerfiles by reducing build artifacts.