python
Deploy, scale, and secure critical infrastructure with Cleanstart's hardened container images.
10K+
CleanStart Container for Python
Official Python programming language runtime container, optimized and security-hardened for enterprise deployments. Includes the complete Python interpreter and standard library, pip package manager, and essential build tools. Features multi-stage builds to minimize image size, integrated security scanning, and enterprise-ready configurations. Supports both production deployments and development workflows with separate tagged versions.
š CleanStart Foundation: Security-hardened, minimal base OS designed for enterprise containerized environments.
Key Features
Common Use Cases
Quick Start
Pull Commands Download the runtime container images
docker pull cleanstart/python:latest
docker pull cleanstart/python:latest-dev
Interactive Development Start interactive session for development
docker run -it --name python-dev \
-v $(pwd):/workspace \
-w /workspace \
cleanstart/python:latest-dev /bin/sh
Run Hello World Execute a simple Hello World program
docker run --rm cleanstart/python:latest-dev -c 'print("Hello, World!")'
Mount Workspace Run container with local workspace mounted
docker run --rm -v $(pwd):/app -w /app --user $(id -u):$(id -g) cleanstart/python:latest-dev -c 'import os; print(os.listdir("."))'
Application Server Run application with port forwarding
docker run -d --name python-app \
-p 8000:8000 \
-v $(pwd):/app \
-w /app \
cleanstart/python:latest
Configuration
Environment Variables
| Variable | Default | Description |
|---|---|---|
| PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | System PATH configuration |
| PYTHONPATH | /usr/local/lib/python3.9/site-packages | Python packages search path |
Security & Best Practices
Recommended Security Context
securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop: ['ALL']
Best Practices
Architecture Support
Multi-Platform Images
docker pull --platform linux/amd64 cleanstart/python:latest
docker pull --platform linux/arm64 cleanstart/python:latest
Essential links and resources for further information
CleanStart Images: https://images.cleanstart.com/ā
Community Images:
Docker Hub: https://hub.docker.com/u/cleanstartā
GitHub: https://github.com/cleanstart-containersā
AWS ECR Public Gallery: https://gallery.ecr.aws/cleanstart/ā
Presence on Social Media:
Community: https://www.linkedin.com/groups/18324021/ā
YouTube: https://www.youtube.com/@CleanStartOfficialā
Contribute to Container Use Cases: https://github.com/cleanstart-dev/cleanstart-use-cases/ā
CleanStart offers Docker images that include third-party open-source libraries and packages maintained by independent contributors. While CleanStart maintains these images and applies industry-standard security practices, it cannot guarantee the security or integrity of upstream components beyond its control.
Users acknowledge and agree that open-source software may contain undiscovered vulnerabilities or introduce new risks through updates. CleanStart shall not be liable for security issues originating from third-party libraries, including but not limited to zero-day exploits, supply chain attacks, or contributor-introduced risks.
Security remains a shared responsibility: CleanStart provides updated images and guidance where possible, while users are responsible for evaluating deployments and implementing appropriate controls.
Content type
Image
Digest
sha256:afce3b559ā¦
Size
35.5 MB
Last updated
about 3 hours ago
docker pull cleanstart/python:3.14.6-amd64