Secure by Design, Built for Speed, Hardened Container Images on a minimal base CleanStart OS.
50K+
Verified PHP Container Image
A hardened, minimal PHP container image built from source with verifiable software provenance and an SBOM, designed for secure production deployments.
For additional versions including FIPS support, explore CleanStart Images — secure, hardened container images
Download the container image from the registry
docker pull cleanstart/php:latest
docker pull cleanstart/php:latest-dev
Run the container with basic configuration
docker run -it --rm --name php cleanstart/php:latest -a
Deploy with production security settings
docker run -d --name php-prod \
--security-opt=no-new-privileges \
--user 1000:1000 \
--restart unless-stopped \
-p 8080:8080 \
-v "$PWD":/app \
cleanstart/php:latest -S 0.0.0.0:8080 -t /app
Volume Mount Mount local directory for persistent data
docker run -v /app:/app cleanstart/php:latest -r 'echo "Hello " . PHP_VERSION . "\n";'
Port Forwarding Run with custom port mappings
docker run --rm -p 8080:8080 -v "app":/app cleanstart/php:latest -S 0.0.0.0:8080 -t /app
Why Use CleanStart Images
Content type
Image
Digest
sha256:cbff4daaa…
Size
58.3 MB
Last updated
about 2 hours ago
docker pull cleanstart/php