Dagger
Dagger is a programmable CI/CD engine that lets you define pipelines as code using Go, Python, or TypeScript SDKs, backed by a BuildKit-powered DAG executor with automatic caching. It eliminates the gap between local development and CI by running the exact same containerized pipeline everywhere.
Overview
Overview
Dagger treats CI/CD pipelines as ordinary programs rather than configuration files. You write pipeline logic in Go, Python or TypeScript with a typed SDK instead of a provider-specific YAML DSL.
The SDK compiles to a GraphQL description of the build graph. The Dagger engine runs that graph in containers on BuildKit, so every step is reproducible and isolated regardless of the host. A run takes the same path whether it starts on a laptop or in any CI provider.
- Your pipeline code, written in Go, Python or TypeScript, describes the work.
- The SDK turns that code into a GraphQL build graph.
- The Dagger engine receives the graph from whichever machine started the run.
- BuildKit runs each step in a container and keeps a cache of the results.
- The run ends with images, binaries and test results.
Key concepts
- Dagger Engine and GraphQL API
- Pipeline as a Dagger Function
- BuildKit-backed DAG and Caching
- Dagger Modules and Daggerverse
- Services for In-Pipeline Databases and Caches
- Secrets Management
- Cache Volumes and Local-Equals-CI Parity
Interview questions
- How does Dagger caching work and what causes cache invalidation?
- How does Dagger compare to GitHub Actions for a Go service with database integration tests?
- Explain the Dagger Module system and how Daggerverse enables pipeline composition.
- How do Dagger Services work for in-pipeline databases and what are the lifecycle guarantees?
- When should you choose Dagger over a YAML-based CI system and what are the tradeoffs?
Sign up free to read the full topic
More DevOps topics
- Continuous Delivery vs Deployment
- Continuous Integration
- Control Plane Errors — API Server, RBAC, Webhooks, Quotas and Finalizers
- Cost-Optimized CI Runner Fleet
- Cross-Compilation and Sysroots
- Crossplane — Cloud Control Plane
- Data Observability
- Database Migrations in CI/CD
- Database Schema Evolution
- Debugging a Broken Alerting Pipeline
- Deploying Kubernetes on Bare Metal — End to End
- Deployment Strategies
Start free on Cariara · Coding problems · System design studio