Docker Tutorial for Beginners

Docker Tutorial for Beginners

1,930 View

Publish Date:
3 August, 2024
Category:
Computers and Technology
Video License
Standard License
Imported From:
Youtube

Docker Tutorial for Beginners teaching you everything you need to know to get started.

This video is sponsored by Docker. https://www.docker.com/

Whether you're a student or a professional, let's learn the fundamentals of Docker by example, from start to finish in an easily understandable way, using hands-on demos and code examples along with explanations detailing the important points.
By the end of this tutorial, you will understand the basics of Docker, including what Docker is and what problems it solves, what's the difference between containers and virtual machines, how to install Docker, what's the difference between containers and images, how to pull images and run, run containers with environmental variables, arguments, and mapped ports, how to reduce Docker image size using slim and Alpine images, how to persist data in volumes and bind-mounts and understand the difference between volumes vs bind-mounts, how to build your own custom images using Dockerfiles and understand Docker layers, how to create multistage builds, how to use Docker compose to manage multiple containers, how to publish Docker images to Docker Hub, and some advice on deploying Docker containers in the cloud.

Throughout the course we will create a fully functioning containerized app with an NGINX frontend, Python FastAPI backend, and MongoDB database.


― mCoding with James Murphy (https://mcoding.io)

Docker: https://www.docker.com/
Dockerfile reference: https://docs.docker.com/reference/dockerfile/
Compose file reference: https://docs.docker.com/compose/compose-file/
Docker Hub: https://hub.docker.com/

Source code: https://github.com/mCodingLLC/VideosSampleCode

SUPPORT ME ⭐
---------------------------------------------------
Sign up on Patreon to get your donor role and early access to videos!
https://patreon.com/mCoding

Feeling generous but don't have a Patreon? Donate via PayPal! (No sign up needed.)
https://www.paypal.com/donate/?hosted_button_id=VJY5SLZ8BJHEE

Want to donate crypto? Check out the rest of my supported donations on my website!
https://mcoding.io/donate

Top patrons and donors: Laura M, Neel R, Dragos C, Jameson, Matt R, Pi, Vahnekie, Johan A, Mark M, Mutual Information

BE ACTIVE IN MY COMMUNITY 😄
---------------------------------------------------
Discord: https://discord.gg/Ye9yJtZQuN
Github: https://github.com/mCodingLLC/
Reddit: https://www.reddit.com/r/mCoding/
Facebook: https://www.facebook.com/james.mcoding

CHAPTERS
---------------------------------------------------
0:00 Intro
1:24 What is Docker and Why?
3:21 Docker containers vs Virtual Machines
4:17 Installing Docker, Docker Desktop
6:21 Docker hello world
7:17 Docker containers vs images
8:35 Port mapping Docker containers
10:00 Run Docker container in background
11:29 Docker tags and digests
13:33 Running with env vars and args
14:28 Slim images and Alpine images
16:04 Debugging running Docker containers
17:16 Persistence with Docker volumes and bind-mounts
22:25 Custom Docker images, Dockerfiles, frontend NGINX
26:06 Docker layers
29:01 Custom Docker images, backend Python FastAPI
33:40 Docker multistage builds
36:39 Docker compose
39:53 More compose, adding a MongoDB database
45:09 More compose, adding mongo express to explore the db
46:58 How to publish Docker image to Docker Hub
49:34 Deploying Docker containers in the cloud
50:23 Thanks


Did you miss our previous article...
https://learningvideos.club/computer-technology/arduino-masterclass-full-programming-workshop-in-90-minutes