Fireship · @fireship
Learn Docker in 7 Easy Steps - Full Beginner's Tutorial
Uploaded August 24, 2020 · Length 11:02
Summary
This video teaches how to use Docker in 7 easy steps, covering installation, tooling, and advanced concepts like port forwarding and Docker Compose.
- docker tutorial
- docker for beginners
- docker installation
- docker tooling
- docker compose
- docker port forwarding
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
one of the leading causes of imposter
- 0:01
syndrome among developers is not knowing
- 0:03
docker it makes it hard to go to parties
- 0:05
where everybody's talking about
- 0:06
kubernetes
- 0:07
swarms shuffle sharding while you hide
- 0:09
in the corner googling what is a
- 0:10
container we've all been there at one
- 0:12
point or another
- 0:12
in today's video you'll learn everything
- 0:14
you need to know about docker to survive
- 0:16
as a developer in 2020
- 0:17
we'll take a hands-on approach by
- 0:19
containerizing a node.js application
- 0:21
i'll assume you've never touched a
- 0:22
docker container before so we'll go
- 0:23
through installation and tooling
- 0:25
as well as the most important
- 0:26
instructions in a dockerfile in addition
- 0:28
we'll look at very important advanced
- 0:30
concepts like port forwarding
- 0:31
volumes and how to manage multiple
- 0:33
containers with docker compose
- 0:35
we'll do everything step by step so feel
- 0:37
free to skip ahead with the chapters in
- 0:39
the video description
- 0:40
what is docker from a practical
- 0:42
standpoint it's just a way to package
- 0:43
software so it can run on any hardware
- 0:46
now in order to understand how that
- 0:47
process works there are three things
- 0:49
that you absolutely must know
- 0:50
docker files images and containers a
- 0:53
docker file is a blueprint for building
- 0:55
a docker image
- 0:56
a docker image is a template for running
- 0:59
docker containers
- 1:00
a container is just a running process in
- 1:02
our case we have a node application we
- 1:04
need to have a server that's running the
- 1:05
same version of node and that has also
- 1:07
installed these dependencies
- 1:09
it works on my machine but if someone
- 1:10
else with a different machine tries to
- 1:12
run it with a different version of node
- 1:13
it might break
- 1:14
the whole point of docker is to solve
- 1:16
problems like this by reproducing
- 1:18
environments the developer who creates
- 1:19
the software can define the environment
- 1:21
with a docker file
- 1:22
then any developer at that point can use
- 1:24
the docker file to rebuild the
- 1:26
environment which is saved as an
- 1:27
immutable snapshot known as an image
- 1:29
images can be uploaded to the cloud in
- 1:31
both public and private registries
- 1:33
then any developer or server that wants
- 1:35
to run that software
- 1:36
can pull the image down to create a
- 1:38
container which is just a running
- 1:40
process of that image in other words one
- 1:42
image file can be used to spawn the same
- 1:44
process multiple times in multiple
- 1:46
places
- 1:46
and it's at that point where tools like
- 1:48
kubernetes and swarm come into play
- 1:50
to scale containers to an infinite
- 1:51
workload the best way to really learn
- 1:53
docker
- 1:54
is to use it and to use it we need to
- 1:56
install it if you're on mac or windows i
- 1:58
would highly recommend installing the
- 1:59
docker desktop application it installs


