Secure by Design, Built for Speed, Hardened Container Images on a minimal base CleanStart OS.
50K+
**CleanStart Container for Go**
Official Go programming language container image optimized for enterprise environments. Includes the complete Go development toolkit, compiler, and runtime environment. Features security-hardened base image, minimal attack surface, and FIPS-compliant cryptographic modules. Supports both production deployments and development workflows with separate tagged versions. Includes standard Go tools like go test, go fmt, and go mod for dependency management.
š CleanStrt 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/go:latest
docker pull cleanstart/go:latest-dev
Interactive Development Start interactive session for development
docker run -it --name go-dev -v $(pwd):/workspace -w /workspace --entrypoint /bin/sh cleanstart/go:latest-dev
Run Hello World Execute a simple Hello World program
nano hello.go
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
docker run --rm -v "$(pwd)":/workspace -w /workspace cleanstart/go:latest-dev run hello.go
Mount Workspace Run container with local workspace mounted
docker run --rm -v $(pwd):/app -w /app cleanstart/go:latest-dev build
Application Server Run application with port forwarding
docker run -d --name go-app \
-p 8080:8080 \
-v $(pwd):/app \
-w /app \
cleanstart/go:latest
Configuration
Environment Variables
| Variable | Default | Description |
|---|---|---|
| PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | System PATH configuration |
| GOPATH | /go | Go workspace directory path |
| GOROOT | /usr/local/go | Go installation directory |
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/go:latest
docker pull --platform linux/arm64 cleanstart/go: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:cf1fb9df8ā¦
Size
152.3 MB
Last updated
about 5 hours ago
docker pull cleanstart/go:1.26.5-amd64