BM: Baca dalam Bahasa Melayu
World D1: First Containers
Your first docker run
You will learn: what docker run does, one step at a time.
Checked with Docker Engine 29 on 31 Oct 2026
The problem
You want to run an app. No install, no setup, just one line: docker run hello-world. Your laptop has never seen this app. What does Docker do first?
Pick one answer.
Watch
Your laptop~
- No open hatches
Lunchboxes (containers)
- No containers yet
Frozen packs (images)
- No images yet
0 containers (0 running), 0 images, 0 lockers.
Read the top lines. Docker had no meal pack. So it pull: Fetch an image from a registry, like taking a meal pack out of the shop freezer. one from Docker Hub, the shop freezer. Then a lunchbox ran and said hello.
Try it
docker run does three jobs in a row. Put them in order.
First job at the top. Put these in order. Use the arrows, or drag.
- Create: fill a lunchbox (the container) from it
- Start: switch on the app inside the box
- Pull: fetch the meal pack (the image)
Try it
Your turn. Type docker run hello-world. Watch the picture: a meal pack lands, then a lunchbox appears.
Your laptop~
- No open hatches
Lunchboxes (containers)
- No containers yet
Frozen packs (images)
- No images yet
0 containers (0 running), 0 images, 0 lockers.
Hint
Typedocker run hello-world, then press Enter.Predict
You type docker run hello-world a second time. What happens?
Pick one answer.
Check
Run it once more. Then type docker ps -a: it lists every container: A sealed lunchbox that holds your app and everything it needs., even finished ones. How many lunchboxes now?
Your laptop~
- No open hatches
Lunchboxes (containers)
- vibrant_ritchiestopped
Frozen packs (images)
- hello-world:latest1 layers · 25.9kB · in use
1 containers (0 running), 1 images, 0 lockers.
Hint
Firstdocker run hello-world, then docker ps -a.You did it!
You can now run a container and explain what happened.
Go deeper (optional)
docker run is three commands in one: docker pull, docker create and docker start. Each run makes a new box, with a random name like vibrant_ritchie. Lesson 3 shows how to pick your own.
Real rep (optional). On your own machine, with Docker installed:
Real mission
docker run hello-worlddocker ps -a
0 of 3 steps done · Your ticks are saved.
Bahasa Melayu
Anda mahu jalankan satu aplikasi. Tak perlu pasang, tak perlu tetapan. Cuma satu baris: docker run hello-world. Laptop anda tak pernah ada aplikasi ini. Apa Docker buat dulu?
Baca baris atas. Docker tiada pek beku. Jadi ia pull (tarik) satu dari Docker Hub, peti sejuk kedai. Kemudian satu bekas berjalan dan beri salam.
docker run buat tiga kerja berturut-turut. Susun ikut urutan.
Giliran anda. Taip docker run hello-world. Tengok gambar: pek beku sampai, kemudian bekas muncul.
docker run hello-world, kemudian tekan Enter.Anda taip docker run hello-world sekali lagi. Apa jadi?
Jalankan sekali lagi. Kemudian taip docker ps -a: ia senaraikan setiap container (bekas), termasuk yang sudah selesai. Berapa bekas sekarang?
docker run hello-world, kemudian docker ps -a.Kini anda boleh jalankan container dan terangkan apa yang berlaku.
You finished this before. Practice is always welcome!
Official docs: docker run · What is a container? · docker ps
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?