How to Create a Great Local Python Development Environment with Docker

  Рет қаралды 55,746

Docker

Docker

Күн бұрын

Пікірлер: 61
@harkinrb
@harkinrb Жыл бұрын
Brilliant video. Very well structured and presented. Solves pretty much all the complaints I had with my existing setup. Thanks and keep up the good work!
@ThinkPalm-t5f
@ThinkPalm-t5f 10 ай бұрын
Really awesome explanation . Most of the docker videos I watched where geared towards node , react and other web dev frameworks. I am mostly working with python so this was a great watch and informational.
@modiddymo
@modiddymo 2 ай бұрын
Amazing tutorial. To the point and covers the most important things to get started with Python + Docker. Well done. Thank you :)
@paulbcote
@paulbcote Ай бұрын
Wow! Either very smoot performance or brilliant editing. In either case, excellent job! I think that I may need to watch this a few times. But on first reading, I'm convinced. I need to implement this.
@nirmal_kumar
@nirmal_kumar Жыл бұрын
Thanks for the detailed explanation. I was wondering earlier how dockers really helps for development. This explains perfectly.
@jrrtolkin
@jrrtolkin 10 ай бұрын
Thank you for a great video. Well structured, detailed and informative. I will implement it for sure.
@aar021
@aar021 Жыл бұрын
This was awesome Patrick. Just what I needed.
@teogf
@teogf Жыл бұрын
Best teacher over the world.
@sabaokangan
@sabaokangan Жыл бұрын
Patrick Loeber is my hero!
@margramiof7926
@margramiof7926 Жыл бұрын
Hey Patrick, really nice tutorial. Thank you for sharing!
@zhenxuanjameszhang
@zhenxuanjameszhang 10 ай бұрын
I found this video useful. Thanks! I would suggest to add video chapter for easy navigation.
@centameta8597
@centameta8597 Жыл бұрын
Best ever docker video!
@frankcasanova2132
@frankcasanova2132 29 күн бұрын
thank you so much, i spend 2 hours finding out how to debbug insida a dev-container hahaha
@Alexander-pk1tu
@Alexander-pk1tu 7 ай бұрын
This video rocks!! Very nicely said and organised
@techatival
@techatival 10 ай бұрын
Thank you Patrick!
@wei48221
@wei48221 2 ай бұрын
Very good tutorial. Thank you.
@FrocketGaming
@FrocketGaming 11 ай бұрын
This was helpful but I tried to create a more generic data science image but just could not get it to work as not container was ever running for me to attach to.
@mm333-e1t
@mm333-e1t Жыл бұрын
Well-structured and pretty detailed video!!
@4AlexeyR
@4AlexeyR 7 ай бұрын
Thanks for interesting approach using IDE inside a container. Could you explain why you do not use --watch to volume to update code immediately after change on host's mapped volume? What benefits to edit with VSCode in the container instead of the local host filesystem?
@OpenDeepLearning
@OpenDeepLearning Жыл бұрын
I just love you! You helped me so much with this!
@samre3006
@samre3006 Жыл бұрын
Very useful. Thanks a lot for sharing this.
@tomhas4442
@tomhas4442 10 ай бұрын
excellent tutorial, many thanks! tip: if you run into issue that the service is not available (localhost:80) the port might be used by another application. Simply change '-80:80' to '-8000:80' in docker-compose.yaml to use port 8000..
@gilsonjunior_narrador
@gilsonjunior_narrador 3 ай бұрын
Thank you for sharing ! My output is only in terminal screen, I am not able to send to browser. Do you have some tips ?
@akshaydongare2136
@akshaydongare2136 8 ай бұрын
Amazing video!
@JJGhostHunters
@JJGhostHunters Жыл бұрын
Is it possible to run Spyder IDE within Docker in Ubuntu and access GPUs? I have not seen resources that explain how to enable this.
@schawanji
@schawanji 7 ай бұрын
Life saver!
@乾淨核能
@乾淨核能 7 ай бұрын
I have a noob question, why we want to setup a dev environment in a docker?
@igorlikholat5606
@igorlikholat5606 Жыл бұрын
brilliant tutorial! thank you I have a question.. I’m confused with how to debug worker command inside docer container, when it possible to run in bash console only? I’m going to be glad hearing your answer)
@dmytroparfeniuk2670
@dmytroparfeniuk2670 Жыл бұрын
Thanks for the video! So does it mean that each time you make the commit of that file you have to remove that line.
@dmytroparfeniuk2670
@dmytroparfeniuk2670 Жыл бұрын
I mean dubugging lines
@alqods80
@alqods80 Жыл бұрын
I used to use the xdebug extension in vscode ide for php, did you used the same does debugpy need it own extension?
@andrewm4894
@andrewm4894 Жыл бұрын
Great tutorial.
@RomanGWatch
@RomanGWatch Жыл бұрын
Best 🙇‍♂
@soccernerd200
@soccernerd200 9 ай бұрын
I'm stuck at 14:36. I have followed all steps, but when I choose attach to a running container, and select my container, no code pulls through to the new instance. Any ideas? Do I need to do this step?
@janlodewijk1985
@janlodewijk1985 7 ай бұрын
Same problem here!
@test-d7y
@test-d7y 7 ай бұрын
Find and select /code folder
@alejandrocarmonaligeon
@alejandrocarmonaligeon Жыл бұрын
Great video.
@vijaipidinti8208
@vijaipidinti8208 Жыл бұрын
Hello, I did exactly the same as per your tutorial, I am using the docker desktop in windows 10, I am able to create the image , however the container wound not start and gives the following error "Error: (HTTP code 400) unexpected - failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "uvicorn": executable file not found in $PATH: unknown". Could you please help on this?
@johndsa552
@johndsa552 Жыл бұрын
You need to put the reference of the uvicorn in the requirements file as follows uvicorn[standard]. This will solve the problem!!
@Parallellook
@Parallellook Жыл бұрын
i used python 1 year and it was fun. bat i didnt know it is imposible ti have more then one project per pc. and eaven if have only one project on your pc you can't finish it. it have tiùo stay at a prototip stage forever. now i have to switch to somting else
@exmachina767
@exmachina767 Жыл бұрын
This is false. There are plenty of production apps out there written in Python.
@Dwdummies
@Dwdummies 10 ай бұрын
fastapi still not found in local even after attaching a running container
@_promptcoder
@_promptcoder Жыл бұрын
I required gcc-4.7 as a dependency to install some of python package. How can we add gcc-4.7
@exmachina767
@exmachina767 Жыл бұрын
You can use the RUN command to run commands during image construction, e.g., “apt-get install build-essential” or any other command you’d normally run in your terminal.
@Gleissongtr
@Gleissongtr Жыл бұрын
Thank you so much!
@Didanihaaaa
@Didanihaaaa Жыл бұрын
great. show us using pycharm?
@MounkailaGarba-kl6rq
@MounkailaGarba-kl6rq 5 ай бұрын
merci
@Chuukwudi
@Chuukwudi 6 ай бұрын
Did anyone make a note of all these things? Maybe a github repo md file or something ? Please, help!
@shk5253
@shk5253 Жыл бұрын
how about cuda?
@exmachina767
@exmachina767 Жыл бұрын
Yes, you can also build containers with CUDA libraries inside. Or you can reuse public pre-built containers with CUDA and any machine learning libraries you need.
@bawitdaba1337
@bawitdaba1337 Жыл бұрын
couldn't be anymore confusing, you have to manually edit and manage dockerfiles in a text editor and not in docker desktop? seems easier just to use a vm
@exmachina767
@exmachina767 Жыл бұрын
Docker wasn’t initially created for development but as a packaging solution for deployment. As a result, its tools are not designed to make it trivial for beginners. That said, using VMs is an option but it’s much heavier and slower compared to containers. Once you know the basics, getting a container up and running is a breeze compared to running a VM.
@karlkemp5798
@karlkemp5798 Жыл бұрын
Patrick, I'm a beginner and want to learn docker. You didn't start from the beginning. 1) What do you need to install on your OS, for example Docker Desktop, VS Code , Git etc. 2) What recommended OS a beginner should use - OSX, Windows, Linux/Ubuntu etc. You just jumped into coding an ap etc.
@boxboxerson991
@boxboxerson991 Жыл бұрын
Okay but surely you can use your experience as a developer to intuit what's going on
@PedigreeGuitars
@PedigreeGuitars Жыл бұрын
Works only with zsh not with powershell. It fails with $(pwd), with powershell should be ${pwd}
@paradoxOP1002
@paradoxOP1002 Жыл бұрын
hey, i have an issue creating the volume : docker run -d --name fastapi-container -p 80:80 -v $(pwd):/code fastapi-image this is giving me error : docker: invalid reference format. See 'docker run --help'. plz help :)
@petervinter1413
@petervinter1413 Жыл бұрын
If you running from powershell shell use ${pwd} instead of $(pwd)
@hongkyulee9724
@hongkyulee9724 Жыл бұрын
Thank you for the good explanation
@AmericanMandelorian
@AmericanMandelorian Ай бұрын
But docker itself can be polluted
@aristotelesfernando
@aristotelesfernando 3 ай бұрын
Awesome video!
How to create a great dev environment with Docker
29:55
Patrick Loeber
Рет қаралды 275 М.
My Python Development Environment Setup - Full Tutorial
20:39
Tech With Tim
Рет қаралды 242 М.
This Game Is Wild...
00:19
MrBeast
Рет қаралды 186 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 9 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
My Favorite Way To Handle Dev Environments | VS Code Devcontainers
30:05
BUILD YOUR OWN DOCKER USING DOCKER SDK AND PYTHON || Docker SDK 101
22:07
Future Automation
Рет қаралды 1,5 М.
Docker VSCode Python Tutorial // Run your App in a Container
19:13
Christian Lempa
Рет қаралды 99 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 264 М.
How To Use Docker To Make Local Development A Breeze
21:53
ArjanCodes
Рет қаралды 323 М.
How to containerize Python applications with Docker
26:08
Docker
Рет қаралды 91 М.
If you're not developing with this, you're wasting your time
14:30
Articulated Robotics
Рет қаралды 307 М.
Docker Crash Course for Absolute Beginners [NEW]
1:07:39
TechWorld with Nana
Рет қаралды 1,8 МЛН
This Game Is Wild...
00:19
MrBeast
Рет қаралды 186 МЛН