Docker VSCode Python Tutorial // Run your App in a Container

preview_player
Показать описание
Docker VSCode Python Tutorial to run your application inside a Docker Container. I will show you how to set up your development environment with VSCode, which extensions you need and how debugging works. #Docker #VSCode #Python

Follow me:

Timestamps:

00:00 - Introduction
00:52 - Why we need Linux
01:28 - Install WSL2 on Windows 10
03:26 - Install Docker Desktop on Windows 10
04:07 - Install VSCode Extensions
05:05 - Connect VSCode to WSL2
06:10 - A simple Python App Example
08:02 - Generate Docker Files
09:30 - What are these Docker Files?
14:01 - Build and Run our Docker Image
15:12 - How Debugging works
17:47 - What can you do next?

----
All links with "*" are affiliate links.
Рекомендации по теме
Комментарии
Автор

I was confused how to handle with Docker, but this tutorial was helpful THANK YOU SIR :)

beyzamutlu
Автор

That's so helpful!!! I'm a total beginner and it really helped me step by step to build my first docker image!! Thank you!

Youyoyo
Автор

I kept getting stuck on the debug part inside of the container within VS Code - thank you for being so informative!

VincentStevenson
Автор

This worked nicely for me.
Thank you for a good tutorial.
Being able to debug inside a container is a great feature.

webjakob
Автор

This is the lecture I were looking for last 7 days! Thanks.

diem
Автор

Great video. I wasn't using VSCode. I had to build the container again without the non-root user because the sqlite3 database I had was read-only.

longrolstral
Автор

Interesting, I used ChatGPT today and within 30 mins created images from my scripts, containerized in docker and monitor with portainer if needed. :D Never heard of this VScode before today haha.

focusmicro
Автор

vs code has since changed a few times so this video just serves to compound the annoyance with building on microsoft

dr_flunks
Автор

Thank you keeping the python example simple.

PaulPetersVids
Автор

came across you on Network Chuck. Great stuff, thank-you!

Sultaneous
Автор

@ChristianLempa. Thank you for your tutorials. Could you please share what type of lights do you use for your room background? Thank you.

lencazero
Автор

Thank you very for clarifying basic concepts of docker.

CoderShark
Автор

Very informative and just what i was looking for. Thanks & subbed! :)

dylanr
Автор

Thanks for this well done video for first steps. You got a new sub! I'd love to have seen a followup video that explains how to update your code in the docker image and install python dependencies as well.

machinimaaquinix
Автор

at 14:10 if it is not letting you build, try logging into your docker account by copy and pasting "docker login" in the terminal and then typing in your username and password. Password will be invisible as is normally the case so don't freak out if you cannot see the text.

TheAbsoluteSir
Автор

Great video, very helpful. Solved alot of the problems I encountered prior. But I have few question regarding VS, why did you run VS in ubuntu(wsl), you can still do the rest while running VS in windows like Docker: workspace ect.. . Also Is it better to allow your container to keep running, for example if you use -jupyter version of images your container will never stop running. though I want to avoid using jupyter, I still wonder if leaving your container running yields different results when debugging?

crazybeater
Автор

Excellent video! Thanks! Been looking for this for ages but that is not the reason why I watched this video. I thought there was a way to write a program outside a docker container and run that same code in a linux environment of docker container despite being on windows.

Chuukwudi
Автор

Excellent excellent content.Thanks for sharing your knowledge.

SadhamHussainsree
Автор

Hi, Christian.... thanks for this, wish I had seen it when I got started. I was particularly interested in the ability to create containers using VSCode tasks.
You might be interested in API Logic Server - it creates executable web app projects from a database, including support for developing in docker, and creating docker containers.

apilogicserver
Автор

I need to access my csv file for pyspark task. What do I do to make my local drive accessible?

shiblinomani