Infrastructure as Code tutorials
Tutorials and best practices for the cloud
Step-by-step guides on Terraform / OpenTofu, AWS, Kubernetes and Ansible, from first steps to production-ready automation.
Start here
AWS with Terraform: The Essential Guide
A complete AWS environment built with Terraform / OpenTofu: VPC, subnets, security groups, EC2, RDS, DNS, auto scaling, load balancers, modules, remote state and CI/CD.
Latest tutorials
- Docker & Rancher Desktop Tutorials
Docker and Rancher Desktop Troubleshooting: Common Errors and Fixes
Fix common Docker and Rancher Desktop problems: daemon not reachable, ports below 1024, KVM, missing images after switching engines, ImagePullBackOff, disk space.
- Docker & Rancher Desktop Tutorials
Automate Rancher Desktop with rdctl: Settings, Snapshots and Profiles
Use rdctl, the Rancher Desktop command line, to start the app, change engine and Kubernetes, take snapshots, install extensions and create deployment profiles.
- Docker & Rancher Desktop Tutorials
Terraform Docker Provider: Manage Containers and Images as Code
Use the Terraform and OpenTofu Docker provider (kreuzwerker/docker) with Rancher Desktop to manage images, networks, volumes and containers declaratively.
- Docker & Rancher Desktop Tutorials
Push Docker Images from Rancher Desktop to Amazon ECR
Create an Amazon ECR repository with Terraform, log in with the AWS CLI and push images built in Rancher Desktop with docker or nerdctl, for ECS and EKS.
- Docker & Rancher Desktop Tutorials
Convert Docker Compose to Kubernetes: Kompose and Manual Migration
Migrate a Docker Compose app to Kubernetes: generate manifests with Kompose, fix what it cannot convert and deploy to Rancher Desktop with Secrets and Ingress.
- Docker & Rancher Desktop Tutorials
Kubernetes in Rancher Desktop: Run Your Local Images on K3s
Use the Kubernetes cluster of Rancher Desktop: choose the version, run local images without a registry, expose apps with Traefik ingress and port-forward.
- Docker & Rancher Desktop Tutorials
Docker Image Security: Scan with Trivy and Harden Your Containers
Secure Docker images and containers: scan for vulnerabilities with Trivy or Docker Scout, pin base images, run as non-root, read-only, drop capabilities, manage secrets.
- Docker & Rancher Desktop Tutorials
Docker BuildKit and buildx: Cache Mounts, Secrets and Multi-Platform Images
Speed up Docker builds with BuildKit cache mounts, use build secrets safely and build multi-platform images (amd64 and arm64) with buildx and Rancher Desktop.
- Docker & Rancher Desktop Tutorials
Docker Compose Watch: Live Reload for Containers in Development
Use docker compose watch to sync code into running containers, rebuild on dependency changes and restart on config changes, with Node.js and Python examples.