BM: Baca dalam Bahasa Melayu
World D4: Set Meals
Compose v2 vs v5
You will learn: to tell old Compose advice from current advice.
Checked with Docker Engine 29 on 31 Oct 2026
The problem
Your laptop~/kedai-kancil
- No open hatches
Lunchboxes (containers)
- No containers yet
Frozen packs (images)
- kedai-kancil-api:latest6 layers · 244MB
- kedai-kancil-web:latest9 layers · 92.6MB
- nginx:1.30-alpine8 layers · 93.5MB
- node:24-alpine4 layers · 244MB
- postgres:18-alpine9 layers · 433MB
- redis:8-alpine7 layers · 162MB
0 containers (0 running), 6 images, 0 lockers.
A blog post from 2019 says: run docker-compose up. Your laptop says: command not found. Is your Docker broken?
Watch
Tap each point on the timeline.
Same set meal, new menu cover. Your Docker is fine: the dash is the old name. Tap through the story.
Predict
Why did the number jump from v2 straight to v5?
Pick one answer.
Try it
Check which Compose your kitchen has.
Your laptop~/kedai-kancil
- No open hatches
Lunchboxes (containers)
- No containers yet
Frozen packs (images)
- kedai-kancil-api:latest6 layers · 244MB
- kedai-kancil-web:latest9 layers · 92.6MB
- nginx:1.30-alpine8 layers · 93.5MB
- node:24-alpine4 layers · 244MB
- postgres:18-alpine9 layers · 433MB
- redis:8-alpine7 layers · 162MB
0 containers (0 running), 6 images, 0 lockers.
Hint
docker compose versionCheck
Would you use this today? Right for yes, left for no.
Swipe right for good, left for needs work. Or use the buttons.
docker compose up -dYou did it!
You can now tell old Compose advice from current advice.
Go deeper (optional)
The Go SDK lets Go programs load, check and run Compose projects. No command line needed. It is for tool builders, not daily work. Your files follow the Compose Specification, which has no version number. Real rep (optional): run docker compose version on your machine.
Bahasa Melayu
Satu blog dari 2019 kata: jalankan docker-compose up. Laptop anda kata: command not found. Docker anda rosak ke?
Set hidangan sama, kulit menu baru. Docker anda tak rosak: sengkang itu nama lama. Ketik untuk ikut ceritanya.
Kenapa nombornya lompat terus dari v2 ke v5?
Semak Compose mana yang ada di dapur anda.
docker compose versionAdakah anda akan guna ini hari ini? Kanan untuk ya, kiri untuk tidak.
Kini anda boleh bezakan nasihat Compose lama dengan nasihat semasa.
You finished this before. Practice is always welcome!
Official docs: History and development of Docker Compose · Compose file reference: version and name · docker compose version
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?