Python Docker Tutorial for Beginners

Publié le: 15 juillet 2023
sur la chaîne: Haseeb Kamal
809
21

This is a two part video.
First, I explain what Docker is and why its useful.
Next, we dive into a hands-on beginner tutorial where I show how to containerise a Python FastApi app using Docker.

Docker is an open-source platform that allows us to to automate deployments by packaging applications so that they can be run efficiently in different environments. Code and everything it needs to run (its dependencies) get bundled together in a Docker image. The image is run as something called a Docker container.

Source code:
https://github.com/mhkamal1/yt-conten...

00:00 Docker explained
00:27 What is Docker?
00:36 The need for virtualization
00:54 Virtualization with VMs
01:09 Virtualization with Docker
01:33 Virtualization vs. Docker
01:47 Dockerfile explained
01:54 Docker images explained
02:18 Docker containers explained
02:29 Docker tutorial FastApi
02:52 Boilerplate code
03:10 requirements file with pip freeze
03:29 Creating a Dockerfile
07:55 Build Docker Image with docker build
08:40 View images with docker image ls
08:55 Run image with docker run
09:28 Demo Time!! View FastApi app
09:48 Bonus: Changing port mapping
10:18 Bonus: Exec into running container & detached mode
11:07 Bonus: Exploring filesystem of the running container
11:37 Thank you for watching!!!

Please consider liking if you found the video useful and subscribe for more!

Subscribe here:    / @haseebkamal  


Sur cette page du site, vous pouvez voir la vidéo en ligne Python Docker Tutorial for Beginners durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Haseeb Kamal 15 juillet 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 809 fois et il a aimé 21 téléspectateurs. Bon visionnage!