Fireship · @fireship

100+ Docker Concepts you Need to Know

Uploaded March 12, 2024 · Length 8:28

100+ Docker Concepts you Need to Know

Summary

Learn 100+ Docker concepts to understand containerization, virtualization, and scaling infrastructure for software development.

  • docker concepts
  • containerization
  • virtualization
  • infrastructure scaling
  • software development
  • cloud computing

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    welcome to Docker 101 if your goal is to

  2. 0:02

    ship software in the real world one of

  3. 0:04

    the most powerful Concepts to understand

  4. 0:06

    is containerization When developing

  5. 0:08

    locally it solves the age-old problem of

  6. 0:10

    it works on my machine and when

  7. 0:12

    deploying in the cloud it solves the

  8. 0:13

    age-old problem of this architecture

  9. 0:16

    doesn't scale over the next few minutes

  10. 0:17

    we'll unlock the power inside this

  11. 0:19

    container by learning 101 different

  12. 0:21

    concepts and terms related to computer

  13. 0:23

    science the cloud and of course Docker

  14. 0:25

    I'm guessing you know what a computer is

  15. 0:27

    right it's a box that has three

  16. 0:28

    important components in side a CPU for

  17. 0:31

    calculating things random access memory

  18. 0:33

    for the applications you're using right

  19. 0:35

    now and a dis to store things you might

  20. 0:37

    use later this is bare metal hardware

  21. 0:39

    but in order to use it we need an

  22. 0:41

    operating system most importantly the OS

  23. 0:43

    provides a kernel that sits on top of

  24. 0:45

    the bare metal allowing software

  25. 0:46

    applications to run on it in the olden

  26. 0:48

    days you would go to the store and buy

  27. 0:50

    software to physically install it on

  28. 0:51

    your machine but nowadays most software

  29. 0:53

    is delivered via the Internet through

  30. 0:55

    the magic of networking when you watch a

  31. 0:57

    YouTube video your computer is called

  32. 0:59

    the client but you and billions of other

  33. 1:01

    users are getting that data from remote

  34. 1:03

    computers called servers when an app

  35. 1:04

    starts reaching millions of people weird

  36. 1:06

    things begin to happen the CPU becomes

  37. 1:08

    exhausted handling all the incoming

  38. 1:10

    requests disio slows down Network

  39. 1:12

    bandwidth gets maxed out and the

  40. 1:14

    database becomes too large too query

  41. 1:16

    effectively on top of that you wrote

  42. 1:17

    some garbage code that's causing race

  43. 1:19

    conditions memory leaks and unhandled

  44. 1:21

    errors that will eventually grind your

  45. 1:23

    server to a halt the big question is how

  46. 1:25

    do we scale our infrastructure a server

  47. 1:27

    can scale up in two ways vertically or

  48. 1:29

    horizont ially to scale vertically you

  49. 1:31

    take your one server and increase its

  50. 1:33

    RAM and CPU this can take you pretty far

  51. 1:36

    but eventually you hit a ceiling the

  52. 1:37

    other option is to scale horizontally

  53. 1:39

    where you distribute your code to

  54. 1:41

    multiple smaller servers which are often

  55. 1:43

    broken down into microservices that can

  56. 1:45

    run and scale independently but

  57. 1:47

    distributed systems like this aren't

  58. 1:48

    very practical when talking about bare

  59. 1:50

    metal because actual resource allocation

  60. 1:52

    varies One Way Engineers address this is

  61. 1:54

    with virtual machines using tools like

  62. 1:56

    hypervisor it can isolate and run

  63. 1:58

    multiple operating system systems on a