Start Using Docker Today - Hands On Examples for Developers

In this video, CJ shows hands on examples of when and where you can start using docker in your apps. He shows usage of the docker CLI, Docker Desktop, docker compose and shows how to create a custom image with a Dockerfile. To demonstrate these tools, he shows how to start a redis and postgres database using the official docker images. He also shows how to spin up these containers with docker compose, and finally shows how to containerize an existing application.

Follow along with the first example here:

Follow along with the second example here:

00:00 Intro
00:13 Docker Desktop Alternatives
00:50 How do we run a redis database locally?
01:39 Simple Example API Setup
02:30 Run an image with the docker CLI
06:21 docker CLI commands
08:50 A simple docker compose example
11:45 More complex example API setup
15:41 docker compose example with postgres
17:48 Persisting data with docker volumes
21:51 The case for custom images and containerization
23:32 Creating a custom image with a Dockerfile
30:02 Ignoring files with .dockerignore
31:03 Examine container files and execute commands with Docker Desktop
32:31 Run migrations and seeds from within the container
33:58 Make code changes without re-building image
34:55 Create a volume for node_modules to prevent internalBinding errors
36:35 Better development workflow with devcontainers
38:03 Optimize docker layer order for faster builds
40:09 Create a multi-stage Dockerfile for dev, build and prod
46:23 Share docker-compose.yml configurations
48:41 Thanks!

Overview of Docker Desktop:

Docker Desktop license agreement:

docker CLI reference:

docker container CLI reference:

docker exec reference:

docker compose CLI reference:

docker-compose.yml file reference:

extending your docker compose file:

.dockerignore file reference:

Dockerfile reference:

Multi-stage builds reference:

Docker layers reference:


How to use the node.js image:

Docker hub images used in this video:




Docker desktop alternatives:

Podman Desktop:

Rancher Desktop:



Redis links:

Install redis:

Redis cloud:

Play / pause the audio
Minimize / expand the player
Mute / unmute the audio
Seek backward 30 seconds
Seek forward 30 seconds
Increase playback rate
Decrease playback rate
Show / hide this window