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

ToolWhat it's for
GitVersion control for your code and configuration
DockerBuilding and running containers
kubectlTalking to Kubernetes clusters
TerraformCreating 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

  1. Install Git from git-scm.com, or on Ubuntu with sudo apt install git.

  2. Install Docker Desktop from docker.com on macOS or Windows. On a Linux server, install Docker Engine instead (see Run your first container).

  3. Install kubectl by following the Kubernetes install page for your system.

  4. Install Terraform by following HashiCorp's install page for your system.

  5. Open a new terminal, so it picks up the new tools, and check each one answers with its version:

    bash
    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.

Next steps