Set up your DevOps workstation
Install Git, Docker, kubectl and Terraform, then check each one works before you start the other guides.
· Updated
Every guide here uses the same handful of command-line tools. Install them once, check they run, and the rest of the guides work as written on macOS, Windows or Linux.
Before you start
- A computer running macOS, Windows 10 or 11, or a recent Linux such as Ubuntu 24.04.
- Permission to install software. On a work laptop, check with your IT team first.
- About 30 minutes, most of it waiting for downloads.
What you'll install
| Tool | What it's for |
|---|---|
| Git | Version control for your code and configuration |
| Docker | Building and running containers |
| kubectl | Talking to Kubernetes clusters |
| Terraform | Creating infrastructure from code |
Tip
On Windows, install WSL 2 first and run the Linux commands from these guides in its terminal. They then work exactly as written.
Steps
Install Git from git-scm.com, or on Ubuntu with
sudo apt install git.Install Docker Desktop from docker.com on macOS or Windows. On a Linux server, install Docker Engine instead (see Run your first container).
Install kubectl by following the Kubernetes install page for your system.
Install Terraform by following HashiCorp's install page for your system.
Open a new terminal, so it picks up the new tools, and check each one answers with its version:
git --version docker --version kubectl version --client terraform -version
What happens next
If each command prints a version number, you're ready. If one says "command not found", close the terminal, open a new one and try again; the installer may have changed your PATH.