Free lesson · Module 1, lesson 6 of 7

Setting up: Linux or WSL2, Docker and Git on an 8 GB laptop

Install Ubuntu (or WSL2 on Windows), Docker and Git, cap Docker's memory so an 8 GB laptop stays usable, and run the setup check until every line says OK.

Lessons in this module

Lesson notes

For the student

Everything in this course runs in Linux. Set up one Linux, give Docker at most 4 GB of your 8, configure Git, put the course in your Linux home, and run the setup check until seven lines say OK. Every step for Windows 11, Ubuntu and macOS is in labs/m01/README.md.

One Linux, Docker capped at 4 GB

  • Windows 11: Ubuntu 26.04 inside WSL2; %UserProfile%\.wslconfig holds [wsl2] and memory=4GB; then wsl --shutdown. Without it, WSL2 may take up to half the laptop's memory; the line fixes its share at 4 GB
  • Ubuntu laptop: Ubuntu 26.04 (24.04 also works); Docker has no cap, so close other apps before modules 9 and 10
  • macOS: Docker Desktop, Settings, Resources, Memory 4 GB; brew install jq; Git, curl and make come with xcode-select --install
  • After the cap, free -h inside Ubuntu shows about 3.8 GiB in total: Linux sees its share, and the laptop keeps the rest

The Windows 11 route

  • PowerShell: wsl --list --online, then wsl --install -d Ubuntu-26.04, then make your Linux user
  • In Ubuntu: sudo apt update && sudo apt install -y git curl jq make unzip ca-certificates
  • Docker Engine and Compose from Docker's own package repository (five commands in the lab README), then sudo usermod -aG docker "$USER" and a new terminal (on WSL2, wsl --shutdown if needed)
  • git config --global user.name "Your Name", git config --global user.email "you@example.com", git config --global init.defaultBranch main
  • unzip cloud-devops.zip -d ~ && cd ~/cloud-devops: the course lives in ~/cloud-devops, never under /mnt/c (no Linux permissions, slow files), /tmp (can be emptied at restart) or /root (needs sudo)

The setup check

  • ./scripts/check_setup.sh prints OK linux, OK memory, OK docker, OK compose, OK git, OK curl, OK jq, each with a short detail, then NOTE uv not installed yet: make service installs uv 0.13.9 in module 2
  • The uv line is a note, never a failure
  • Each FAIL line names its own fix; run the check again after every fix
  • FAIL docker: permission denied on /var/run/docker.sock means you are not in the docker group yet: sudo usermod -aG docker $USER, then a new terminal. Never sudo chmod 777 on the socket, and do not put sudo before every docker command

Try it

  • Do the setup for your laptop from labs/m01/README.md
  • Run ./scripts/check_setup.sh in ~/cloud-devops until it prints the seven OK lines and the uv NOTE

Lesson quiz

Checked in your browser. Nothing is sent or saved.

5 questions

Question 1 · medium

Asha writes memory=4GB under [wsl2] in .wslconfig and runs wsl --shutdown. Back in Ubuntu, free -h shows about 3.8 GiB in total. What does that tell her?

Question 2 · medium

The setup check prints FAIL docker: permission denied on /var/run/docker.sock. What is the fix?

Question 3 · hard

Ravi ran sudo usermod -aG docker "$USER" and ran the check again in the same terminal. It still fails. Why?

Question 4 · medium

On WSL2, where should the course folder live, as seen from Ubuntu?

Question 5 · easy

The setup check prints seven OK lines and then NOTE uv not installed yet: make service installs uv 0.13.9 in module 2. What should you do?

DevOps and cloud roles: the job, the skills, the interviewNext: It runs on my laptop: the notice board in one command