
Docker Explained: How Containers Actually Work
Learn how Docker containers actually work: build one by hand on a Linux server with chroot, namespaces, a control group and a non-root user, then let Docker do the same job with an image and one command, and see what Docker adds.
► Try it yourself: https://antonputra.com/exercises/docker-explained/
▬▬▬▬▬▬▬ Timestamps ⏰ ▬▬▬▬▬▬▬
0:00 Intro
1:17 One process on one server
5:00 A folder with nothing else (chroot)
7:31 Inside its own tree
10:24 Its own process list (PID namespace)
12:57 Its own network (network namespace)
15:34 A memory and CPU limit (cgroup)
18:21 Not root
20:03 A stack of folders: a clean start every time
22:10 Pack it: the image
25:01 One command: docker run
27:43 Stop it, remove it, keep the data
30:09 Open Docker's container: the same parts
33:07 What Docker adds
▬▬▬▬▬▬ Connect with me ? ▬▬▬▬▬▬
► LinkedIn: https://www.linkedin.com/in/anton-putra
► Twitter/X: https://twitter.com/antonvputra
► GitHub: https://github.com/antonputra
► Email: me@antonputra.com
#docker #devops
► Try it yourself: https://antonputra.com/exercises/docker-explained/
▬▬▬▬▬▬▬ Timestamps ⏰ ▬▬▬▬▬▬▬
0:00 Intro
1:17 One process on one server
5:00 A folder with nothing else (chroot)
7:31 Inside its own tree
10:24 Its own process list (PID namespace)
12:57 Its own network (network namespace)
15:34 A memory and CPU limit (cgroup)
18:21 Not root
20:03 A stack of folders: a clean start every time
22:10 Pack it: the image
25:01 One command: docker run
27:43 Stop it, remove it, keep the data
30:09 Open Docker's container: the same parts
33:07 What Docker adds
▬▬▬▬▬▬ Connect with me ? ▬▬▬▬▬▬
► LinkedIn: https://www.linkedin.com/in/anton-putra
► Twitter/X: https://twitter.com/antonvputra
► GitHub: https://github.com/antonputra
► Email: me@antonputra.com
#docker #devops
Anton Putra
AWS - GCP - Azure - Kubernetes - Terraform
...