Guided lab · 10 minFree preview
Guided lab:you'll work with the real tools, usually with your own free account. Follow the steps below at your own pace.
Every lab in this course runs in GitHub Codespaces: a ready-made Linux machine in your browser with Docker, Compose and Python already installed. It's free with a GitHub account (60 hours a month), so there is nothing to install on your computer.
Course repo: github.com/webmagicinformatica/docker-shopkart
docker-shopkart) and create it. Public or private both work.docker version should print a Client and a Server.New to Codespaces? Watch the "Set up GitHub Codespaces" lab first. Not using Codespaces? Any machine with Docker Engine 25+ (or Docker Desktop), Compose v2 and Python 3.12 works.
Your copy doesn't update by itself. Link it to the course repo once, then pull.
One time only (in your codespace terminal):
git remote add upstream https://github.com/webmagicinformatica/docker-shopkart.git
git config pull.rebase false
git pull upstream main --allow-unrelated-histories -X theirs --no-edit
git push
Why the extra flags? "Use this template" gives your repo a fresh history, so Git sees the course repo as unrelated and refuses to merge without --allow-unrelated-histories. On this first pull, -X theirs takes the course's version of any file both sides have changed; files you created yourself are kept.
Every time after that:
git pull upstream main --no-edit
Commit your own work first (git add -A && git commit -m "..."). Work inside labs/<lab>/start/ and you won't get conflicts. Each lab's done/ folder has the finished version if you get stuck.