EN: Read in English
Dunia D0: Mula Di Sini · Cabaran bos
Sediakan dapur anda
Anda akan belajar: cara sediakan Docker sebenar, jalankan hello-world, dan selesaikan lima teka-teki rangkaian.
Teks BM belum disemak oleh penutur asli.
Disemak dengan Docker Engine 29 pada 31 Okt 2026
Masalahnya
Ketik setiap titik pada garis masa.
Dapur anda dibuka hari ini! Kancil ada tiga tugas untuk anda. Tekan setiap satu, kemudian mula.
Cuba
Panaskan badan di dapur latihan. docker run hello-world ambil image ujian yang kecil dan jalankannya sekali.
Laptop anda~
- Tiada tingkap terbuka
Bekas (container)
- Belum ada container
Pek beku (image)
- Belum ada image
0 container (0 berjalan), 0 image, 0 loker.
Petunjuk
docker run hello-worldCuba
Sekarang dapur sebenar. Buat setiap langkah di komputer sendiri, kemudian tandakan. Di Linux, letak sudo di depan kalau anda langkau langkah post-install.
Misi sebenar
docker versiondocker run hello-worlddocker ps -a
0 daripada 4 langkah siap · Tanda anda disimpan.
Cuba
Teka-teki 1 daripada 5. Kedai dibuka di tingkap 8080 dalam laptop ini. Rasa dengan curl.
Laptop anda~/shop
- Port laptop 8080 → shop port 80
Bekas (container)
- shopberjalan
Pek beku (image)
- nginx:1.30-alpine8 layer · 93.5MB · sedang diguna
1 container (1 berjalan), 1 image, 0 loker.
Teka
Teka-teki 2 daripada 5. curl localhost:9090 kata Couldn't connect to server. Apa maksudnya?
Pilih satu jawapan.
Cuba
Teka-teki 3 daripada 5. Satu nota kata kedai ada di http://kedai-kancil:8080. curl tak jumpa nama itu. Baca buku telefon laptop, kemudian capai kedai dengan nama yang ia kenal.
Laptop anda~/shop
- Port laptop 8080 → shop port 80
Bekas (container)
- shopberjalan
Pek beku (image)
- nginx:1.30-alpine8 layer · 93.5MB · sedang diguna
1 container (1 berjalan), 1 image, 0 loker.
Semak
Teka-teki 4 daripada 5. Seorang pelanggan minta /sambal.html. Ini jawapannya. Tekan baris yang beritahu apa yang berlaku.
Tekan baris status.
0 daripada 1 dijumpai
Cuba
Teka-teki 5 daripada 5. localhost ada nombor: 127.0.0.1. Capai kedai dengan nombor itu sahaja, tanpa nama.
Laptop anda~/shop
- Port laptop 8080 → shop port 80
Bekas (container)
- shopberjalan
Pek beku (image)
- nginx:1.30-alpine8 layer · 93.5MB · sedang diguna
1 container (1 berjalan), 1 image, 0 loker.
Anda berjaya!
Kini anda boleh sediakan Docker dan selesaikan teka-teki rangkaian harian.
Nak tahu lebih (pilihan)
Latihan sebenar (pilihan): di komputer anda, jalankan docker run -d --name shop -p 8080:80 nginx:1.30-alpine. Kemudian cuba curl localhost:8080 dan curl -I localhost:8080/sambal.html. Kemas dengan docker rm -f shop.
English
Your kitchen opens today! Kancil has three jobs for you. Tap each one, then start.
Warm up in the practice kitchen. docker run hello-world fetches a tiny test image and runs it once.
docker run hello-worldNow the real kitchen. Do each step on your own computer, then tick it. On Linux, put sudo in front if you skipped the post-install steps.
Puzzle 1 of 5. The shop is open at hatch 8080 on this laptop. Taste it with curl.
Puzzle 2 of 5. curl localhost:9090 says Couldn't connect to server. What does it mean?
Puzzle 3 of 5. A note says the shop is at http://kedai-kancil:8080. curl cannot find that name. Read the laptop’s phone book, then reach the shop by a name it knows.
Puzzle 4 of 5. A customer asked for /sambal.html. Here is the reply. Tap the line that tells you what happened.
Puzzle 5 of 5. localhost has a number: 127.0.0.1. Reach the shop with the number only, no name.
You can now set up Docker and solve everyday network puzzles.
Anda dah siapkan ini. Latihan lagi pun bagus!
Dokumentasi rasmi: Get Docker · Install Docker Engine on Ubuntu · hello-world image · MDN: HTTP status codes
Anda dah belajar 25 minit. Rehat sekejap bantu otak anda.
Pecutan selesai! Fokus yang hebat. Regangkan badan seminit?