BM: Baca dalam Bahasa Melayu
World D1: First Containers · Boss challenge
Night shift
You will learn: to find and fix three broken containers on your own.
Checked with Docker Engine 29 on 31 Oct 2026
The problem
Your laptop~
- Laptop port 8080 → web port 8080
Lunchboxes (containers)
- webrunning
- timerfailed (exit 127)
- dbfailed (exit 1)
Frozen packs (images)
- alpine:3.221 layers · 12.9MB · in use
- nginx:1.30-alpine8 layers · 93.5MB · in use
- postgres:18-alpine9 layers · 433MB · in use
Lockers (volumes)
- 1067bd10d611… (no name)0 files · used by db
3 containers (1 running), 3 images, 1 lockers.
Boss: night shift! The day cook left three broken lunchboxes. The shop opens at 7. Fix web, timer and db.
Try it
Box 1: web is Up, but curl localhost:8080 fails. Check its hatch, then fix it.
Your laptop~
- Laptop port 8080 → web port 8080
Lunchboxes (containers)
- webrunning
- timerfailed (exit 127)
- dbfailed (exit 1)
Frozen packs (images)
- alpine:3.221 layers · 12.9MB · in use
- nginx:1.30-alpine8 layers · 93.5MB · in use
- postgres:18-alpine9 layers · 433MB · in use
Lockers (volumes)
- 1067bd10d611… (no name)0 files · used by db
3 containers (1 running), 3 images, 1 lockers.
Hint
docker port web shows where the hatch leads.Check
curl said Connection reset by peer. Why did -p 8080:8080 fail?
Pick one answer.
Try it
Box 2: timer stops at once with Exited (127). Find out why, then make it tick for an hour.
Your laptop~
- Laptop port 8080 → web port 80
Lunchboxes (containers)
- webrunning
- timerfailed (exit 127)
- dbfailed (exit 1)
Frozen packs (images)
- alpine:3.221 layers · 12.9MB · in use
- nginx:1.30-alpine8 layers · 93.5MB · in use
- postgres:18-alpine9 layers · 433MB · in use
Lockers (volumes)
- 596e2561bb82… (no name)0 files · used by db
3 containers (1 running), 3 images, 1 lockers.
Hint
Read its logs first.Check
Notes for the next night shift. Where do you look first?
Drag a card into a box. Or tap the card, then tap the box.
Try it
Box 3: db stops with Exited (1). Read what it asks for. Then give it that.
Your laptop~
- Laptop port 8080 → web port 80
Lunchboxes (containers)
- webrunning
- timerrunning
- dbfailed (exit 1)
Frozen packs (images)
- alpine:3.221 layers · 12.9MB · in use
- nginx:1.30-alpine8 layers · 93.5MB · in use
- postgres:18-alpine9 layers · 433MB · in use
Lockers (volumes)
- 24cd65684366… (no name)0 files · used by db
3 containers (2 running), 3 images, 1 lockers.
Hint
db’s logs name the setting it needs.Check
Your laptop~
- Laptop port 8080 → web port 80
Lunchboxes (containers)
- webrunning
- timerrunning
- dbrunning
Frozen packs (images)
- alpine:3.221 layers · 12.9MB · in use
- nginx:1.30-alpine8 layers · 93.5MB · in use
- postgres:18-alpine9 layers · 433MB · in use
Lockers (volumes)
- 5308b82d4150… (no name)24 files · used by db
3 containers (3 running), 3 images, 1 lockers.
7 a.m. check: three boxes Up. The hatch answers 200 OK. The shop can open. Night shift done!
You did it!
You can now find and fix broken containers on your own.
Go deeper (optional)
Your night shift checklist. 1: docker ps -a shows the state. 2: docker logs tells you why it stopped. 3: docker port or docker inspect checks the setup. 4: remove the box, then run it again, right.
Real rep (optional): break a box on purpose, then fix it.
Real mission
docker run -d --name db postgres:18-alpinedocker ps -adocker logs dbdocker rm dbdocker run -d --name db -e POSTGRES_PASSWORD=secret postgres:18-alpinedocker rm -f db
0 of 6 steps done · Your ticks are saved.
Bahasa Melayu
Boss: syif malam! Tukang masak siang tinggalkan tiga bekas rosak. Kedai buka pukul 7. Baiki web, timer dan db.
Bekas 1: web Up, tapi curl localhost:8080 gagal. Semak tingkapnya, kemudian baiki.
docker port web tunjuk ke mana tingkap itu menuju.curl kata Connection reset by peer. Kenapa -p 8080:8080 gagal?
Bekas 2: timer terus berhenti dengan Exited (127). Cari sebabnya, kemudian buat ia berdetik selama sejam.
Nota untuk syif malam seterusnya. Di mana anda tengok dulu?
Bekas 3: db berhenti dengan Exited (1). Baca apa yang ia minta. Kemudian berikan.
Semakan pukul 7 pagi: tiga bekas Up. Tingkap jawab 200 OK. Kedai boleh dibuka. Syif malam selesai!
Kini anda boleh cari dan baiki container yang rosak dengan sendiri.
You finished this before. Practice is always welcome!
Official docs: docker ps · docker logs · Port publishing and mapping · docker run
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?