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!
@diem389
3 ай бұрын
This is the lecture I were looking for last 7 days! Thanks.
@christianlempa
3 ай бұрын
Awesome, glad I could help :)
@webjakob
10 ай бұрын
This worked nicely for me. Thank you for a good tutorial. Being able to debug inside a container is a great feature.
@dr_flunks
Жыл бұрын
vs code has since changed a few times so this video just serves to compound the annoyance with building on microsoft
@VincentStevenson
Жыл бұрын
I kept getting stuck on the debug part inside of the container within VS Code - thank you for being so informative!
@Sultaneous
2 ай бұрын
came across you on Network Chuck. Great stuff, thank-you!
@longrolstral
Жыл бұрын
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.
@christianlempa
Жыл бұрын
Thank you!
@TheAbsoluteSir
2 жыл бұрын
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.
@marcgentner1322
Ай бұрын
keep it up, love the videos
@focusmicro
Жыл бұрын
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.
@CoderShark
2 жыл бұрын
Thank you very for clarifying basic concepts of docker.
@christianlempa
2 жыл бұрын
Glad it was helpful!
@PaulPetersVids
2 жыл бұрын
Thank you keeping the python example simple.
@christianlempa
2 жыл бұрын
You're welcome!
@machinimaaquinix3178
9 ай бұрын
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.
@christianlempa
9 ай бұрын
Thanks 😊
@lencazero4712
2 ай бұрын
@ChristianLempa. Thank you for your tutorials. Could you please share what type of lights do you use for your room background? Thank you.
@dylanr3875
3 жыл бұрын
Very informative and just what i was looking for. Thanks & subbed! :)
@christianlempa
3 жыл бұрын
Thanks mate
@crazybeater8238
2 ай бұрын
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?
@SadhamHussainsree
2 жыл бұрын
Excellent excellent content.Thanks for sharing your knowledge.
@christianlempa
2 жыл бұрын
Thank you so much for the great feedback :)
@Chuukwudi
Жыл бұрын
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.
@iancurtisfan898
8 ай бұрын
Yo Chris this is lit! Thanks 😎👍
@sowmyaranjannayak7014
2 жыл бұрын
Fast and clear, thank you very much.
@elbezz
9 ай бұрын
Thank you Christian!
@saeedrahman8362
2 жыл бұрын
Thanks , this simplified everything.
@christianlempa
2 жыл бұрын
Great to hear 😉
@user-wr4yl7tx3w
2 жыл бұрын
yes, would like to learn more about docker image pls
@apilogicserver
Жыл бұрын
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.
@christianlempa
Жыл бұрын
Thanks I will have a look ;)
@valjhuber
Жыл бұрын
@@christianlempa are you in code spaces beta?
@zaur66
3 жыл бұрын
Really great video. Thank you
@christianlempa
3 жыл бұрын
Glad you liked it!
@webjakob
10 ай бұрын
While this simple tutorial worked well for me, trying to use docker-compose was bad - particularly bind-volumes just doesn't mount in vscode, while they work fine when using terminal docker-compose. But even just getting as far as launching the compose files was hard, and I had to research a lot and tweak launch.json and tasks.json a lot. Why doesn't vscode enable launching the composes, when it generates them??? So I vote YES, if you want to show how to make debugging docker-compose work ... AND bind-volumes! (I am on Fedora, and I am used to Pycharm).
@alifnaiech6972
3 жыл бұрын
Waiting this video, thank you Christian! How about FastAPI ?
@christianlempa
3 жыл бұрын
Thank you 😊, FastAPI needs to wait a little bit
@chriskeo392
Жыл бұрын
Compose video?
@nikkiromero4315
2 жыл бұрын
Thanks for this video. Very useful
@christianlempa
2 жыл бұрын
You're welcome
@kiunthmo
4 ай бұрын
How can I set my docker container to an already built one? Can I avoid rebuilding the container each time I run debug?
@lucychan494
2 жыл бұрын
I can't Thank you enough ,you just solved my problem
@christianlempa
2 жыл бұрын
Happy to help
@shiblinomani6149
6 ай бұрын
I need to access my csv file for pyspark task. What do I do to make my local drive accessible?
@eranotzap876
2 жыл бұрын
is there a way to change the code and run again without building the entire container ?
@maximpobihun5469
Жыл бұрын
It doesn't create settings.json when I create new python file on vscode
@clintphillips2527
Жыл бұрын
This is great bruh!
@vaha2833
Жыл бұрын
very good
@christianlempa
Жыл бұрын
Thanks
@mebeingme947
3 жыл бұрын
Nice video, just don't get it why you recommend ubuntu. In my experience the ubuntu mother, being Debian is much more stable, even if you use the testing branch.
@christianlempa
3 жыл бұрын
My experience is that Ubuntu is pretty stable as well, but you also get newer software packages. I'm not 100% happy with Ubuntu either, but for a beginner it's definitely the best distro to start with (in my opinion 🤣)
@matthewcrosby3501
Жыл бұрын
Thanks for the tutorial. I wasn't able to run the docker container though as my repository didn't have a name created automatically. it just said . Do you know what I did wrong?
@bellcanada719
Жыл бұрын
there is no vscode when json settings when i refresh
@suryaswayoflooking6435
2 жыл бұрын
How can I do it if I have an input variable in the python script. please let me know. Thanks in prior.
@artabalt4288
Жыл бұрын
I have the problem that when I try to add and import a module, say "import numpy as np" it tells me that Pylance is not finding it. Any tips on how to fix that?
@weishanlei8682
8 күн бұрын
How come your terminal at 5:27 and 5:38 is so fancy? How can I get the same termimal you use?
@christianlempa
8 күн бұрын
For this video I was using powerlevel10k now I’m using a different app called starship but that’s how you customize your terminal. Made several videos about it :)
@learnwithme395
2 жыл бұрын
Hi, can anyone help me, I'm wrote my python code(for desktop app) in pycharm, I want to upload it to Microsoft, what steps should I follow?
@jowiedog
2 жыл бұрын
slightly expanded this example in python to output/print to a file. Any ideas how I would be able to save this output file to host machine, rather then container
@dineshr93
2 жыл бұрын
Thanks for the video.please may I know how to get the different colors for the different indentation like at 16:54
@QuintinMassey
Жыл бұрын
Is there a way to mount host directories in the docker container? I have been searching for how to do this, but all I have pulled up is how to do it with "devcontainer.json." The process you showed in your video seems different for some reason.
@jetmirhaxhisefa1811
3 жыл бұрын
Shouldn't you configure the python interpreted somehow to point to the docker container?
@user-wr4yl7tx3w
2 жыл бұрын
Will the files persist when you stop the containers?
@GQElvie
2 жыл бұрын
Hello and thank you for posting. I am not very tech savvy, so perhaps you said this but I missed it, but we then have to run python INSIDE Of docker, correct? How do we do that? is there a line(s) in CMD? Thanks
@christianlempa
2 жыл бұрын
Hey mate, yeah you can run a CMD inside docker that executes the python3 command, just like on the terminal
@xatazch
Жыл бұрын
Now when Docker Desktop costs money. Do you have any good solution on how to create a docker image without using a build pipeline? Is there any good way to do this on windows using WSL?
@christianlempa
Жыл бұрын
You can still use Docker Desktop for personal use, so I don’t have an issue with it
@xatazch
Жыл бұрын
@@christianlempa ya i know. Bit i want it for fast test builds in my company. I can do it via azure devops pipeline but it is alot more work to setup for a fast test. Thx anyway.
@developercontact490
2 жыл бұрын
trying to follow simply explained tutorial but this no working on linux cause after pressing f1 the pop up (add docker to workspace) isnt showing how do i fix this sir
@christianlempa
2 жыл бұрын
Don't know about linux, I've tested it on Windows.
@pedu71
2 жыл бұрын
simple type "docker add..." manually at > Prompt after F1
@kk008
2 жыл бұрын
Can't install Ubuntu 20.04 LTS what to do?
@nowomannocry8606
3 жыл бұрын
To give Internet access for my container, I just need to add - -net=host right? How about give access of my host webcam to my container? My container python script uses opencv lib
@christianlempa
3 жыл бұрын
You containers have internet access, also if they're bridged. You usually don't need to add the net=host setting.
@manuelorellana8863
Жыл бұрын
Hi, thanks for this info! I have a question though, what if you are using a library like pandas or matplotlib and need the intellisense to autocomplete or easily access the description of methods that are in libraries that get loaded into the image - container but are not installed locally? I know you can attach to a running container, but when you are building a simple app in python the container stops running right after the script finishes. is there anyway to attach to a container that is stopped to get these features? or the only solution is to install the libraries locally? thanks!
@christianlempa
Жыл бұрын
Good question, I haven't really looked into that to be honest.
@manuelorellana8863
Жыл бұрын
@@christianlempa thanks for the answer, i just came up with installing libraries locally, couldn’t find a way to get that with a stopped container. If you ever get a solution I’d be very happy heje
@PrasinoXorton
3 жыл бұрын
Hello Christian. I am now starting to get into docker and I have a question. Aren't 116 MB for running a simple python application too much? I think most of this space is the debian image that we are using to run the python script on. Wouldn't be more space efficient to not have an entire os image to run the script? Like having only the python bin in the container? Is this possible?
@christianlempa
3 жыл бұрын
There are much more lightweight and smaller images of containers available. Take a look at alpine images f.e.
@Keptains
2 жыл бұрын
Because i was curious aswell: As he stated, alpine is really lightweight in terms of size. To be more specific 5MB
@samarthgoyal8791
3 жыл бұрын
Hi there, I tried to do the same with another python code, but when i run the image through the terminal, I get a /bin/sh: 1: [python,: not found error. Can you please help me out with this? Thanks.
@christianlempa
3 жыл бұрын
Sorry for late response. Seems like your Docker container hasn't installed Python. So maybe check your image version if everything is installed there, otherwise use another image that has Python installed.
@user-wr4yl7tx3w
2 жыл бұрын
do you have a version for Mac?
@staaliskander5232
2 жыл бұрын
thank you
@christianlempa
2 жыл бұрын
You're welcome
@fba1ra
2 жыл бұрын
Hey Chris. Great Video. How do I deploy my container after I am done with development?
@christianlempa
2 жыл бұрын
Thanks mate! Check out some Docker Tutorials on my Channel, that will exactly tell you how ;)
@fba1ra
2 жыл бұрын
@@christianlempa Figured it out 😁
@svenkicherer
Жыл бұрын
Ist ein "Remake" des Videos mit vscode dev containern geplant?
@christianlempa
Жыл бұрын
Hi, eher nicht da die Programmier Videos nicht so gut ankommen leider :(
@svenkicherer
Жыл бұрын
@@christianlempa zweitkanal 😉
@pythoneer44
Жыл бұрын
pywin32 will not work with this. No real solution
@webjakob
10 ай бұрын
It's not pronounced "interpreTTer", but more like "interpretoerh". ;-)
Пікірлер: 99