K3d
k3d is a command-line tool for running lightweight k3s Kubernetes clusters inside Docker containers.
Server-Side WebAssembly
k3d is a lightweight command-line tool for running local Kubernetes clusters in Docker containers.
- How it is used
- Provides a local Kubernetes cluster for developing and testing SpinKube deployments.
- How deep it goes
- Explains cluster creation and its Spin runtime, port, and agent-node configuration without detailing k3d internals.
- Examples
- Demonstrates creating wasm-cluster with a Spin-enabled image, port 8081 mapping, and two agent nodes.
- What you can do after
- Operate/configure a local two-agent Kubernetes cluster ready for Spin-based Wasm workloads.
Learn Docker in a Month of Lunches, Second Edition
k3d is a lightweight command-line tool for running k3s Kubernetes clusters inside Docker containers.
- How it is used
- Uses Docker-backed k3s clusters to test Kubernetes deployments near the end of a CI/CD pipeline.
- How deep it goes
- Explains containerized nodes, multi-node testing, and workflow integration, but defers local installation and detailed argument meanings.
- Examples
- Demonstrates a one-node ch16 cluster created by GitHub Actions and selected through the k3d-ch16 kubectl context.
- What you can do after
- Operate/configure a temporary Kubernetes test cluster through a GitHub Action and kubectl.
Read how Learn Docker in a Month of Lunches, Second Edition explains k3d →
Distributed Machine Learning Patterns
A lightweight command-line wrapper for running k3s clusters in Docker.
- How it is used
- Bootstraps local Kubernetes clusters for development workflows requiring Kubernetes.
- How deep it goes
- Explains the wrapper’s role and demonstrates cluster creation, node inspection, namespaces, and subsequent Pod operations.
- Examples
- Uses a distml cluster, node listings, the basics namespace, and a whalesay Pod.
- What you can do after
- Operate a local k3s cluster through k3d and inspect it with kubectl.
Read how Distributed Machine Learning Patterns explains k3d →
What to know first
- containerA software container is an isolated execution environment that packages an application and its dependencies, typically sharing the host operating-system kernel.
- YAMLYAML is a human-readable data serialization standard for representing structured data, commonly using indentation to express mappings and sequences.
Related concepts
- Dockeruses · Docker is a platform and toolset for building, distributing, and running applications in containers.
- K3suses · K3s is a lightweight, certified Kubernetes distribution designed to reduce resource consumption and dependencies in constrained, edge, IoT, or small-scale environments.
- GitHub actionused by · A GitHub Action is a reusable automation component that performs a task within a GitHub Actions workflow.
Questions about k3d
What is k3d?
k3d is a command-line tool for running lightweight k3s Kubernetes clusters inside Docker containers.
Which Manning books explain k3d?
Server-Side WebAssembly, Learn Docker in a Month of Lunches, Second Edition and Distributed Machine Learning Patterns.
What should I know before learning k3d?
Manning books that teach k3d usually introduce container and YAML first.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


