Secure by Design, Built for Speed, Hardened Container Images on a minimal base CleanStart OS.
10K+
CleanStart Container for Nats
NATS is a simple, secure and high-performance open source messaging system for cloud native applications, IoT messaging, and microservices architectures. This container provides a production-ready NATS server with enhanced security features, monitoring capabilities, and enterprise-grade reliability. It includes the core NATS server, built-in security mechanisms like TLS support, authentication, and authorization controls, along with monitoring endpoints for operational visibility.
📌 CleanStart Foundation: Security-hardened, minimal base OS designed for enterprise containerized environments.
Key Features
Common Use Cases
Quick Start
Pull Latest Image Download the container image from the registry
docker pull cleanstart/nats:latest
docker pull cleanstart/nats:latest-dev
Basic Run Run the container with basic configuration
docker run -d --name nats-server -p 4222:4222 cleanstart/nats:latest
Production Deployment Deploy with production security settings
docker run -d --name nats-prod \
--read-only \
--security-opt=no-new-privileges \
--user 1000:1000 \
-p 4222:4222 -p 8222:8222 \
cleanstart/nats:latest
Volume Mount Mount local directory for persistent data
docker run -d -v $(pwd)/nats-config:/etc/nats cleanstart/nats:latest
Port Forwarding Run with custom port mappings
docker run -d -p 4222:4222 -p 8222:8222 -p 6222:6222 cleanstart/nats:latest
Configuration
Environment Variables
| Variable | Default | Description |
|---|---|---|
| PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | System PATH configuration |
| NATS_SERVER_CONFIG | /etc/nats/server.conf | Path to NATS server configuration file |
| NATS_CLIENT_PORT | 4222 | Port for client connections |
| NATS_MONITORING_PORT | 8222 | Port for HTTP monitoring interface |
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/nats:latest
docker pull --platform linux/arm64 cleanstart/nats:latest
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:251c6a6a5…
Size
21 MB
Last updated
3 days ago
Requires Docker Desktop 4.37.1 or later.