Get Started with Dev Containers in VS Code

  Рет қаралды 108,255

Visual Studio Code

Visual Studio Code

Күн бұрын

Learn how Dev Containers can boost your coding productivity and save you time configuring your development environment. Follow along with the demo to discover how to set up and use Dev Containers in Visual Studio Code effortlessly. ⚡️💻
Dev Containers Extension: aka.ms/DevContainersExtension
Dev Containers Open Specification: containers.dev/
Demo Repo: github.com/microsoft/vscode-r...
Features Repo: github.com/devcontainers/feat...
0:00 Intro
0:35 What are dev containers?
1:07 Demo setup
2:49 Devcontainer.json explanation
4:07 Open project in dev container
5:11 Prebuilt image and features overview
6:04 Run the code
6:33 Summary
#devcontainers #vscode

Пікірлер: 94
@mightydrew1970
@mightydrew1970 10 ай бұрын
I've been in IT for 35+ years, in various walks including development... and even this just looks like pure magic to me...
@code
@code 10 ай бұрын
Dev containers ARE magic!! So glad you enjoyed!
@_____case
@_____case 10 ай бұрын
Because for 35 years, there have been teams dedicated to building developer experiences that feel like magic.
@tomdemay9675
@tomdemay9675 8 ай бұрын
Yeah... 32 years for me. And been there for the evolution. Remember when client server was a brand new idea! WOW I just started at a new high profile company and they don't have virtual machines for development. I thought that was so odd. Unfortunately everyone is using their laptops. But I'm trying to introduce better workflows. But someone just suggested a container approach and it sounds interesting. haven't watched the videos yet. But I hope I can find a comparison between a VM and a container for dev environments. I can see how a containerized approach would solve so many problems for VMs, but for what cost? Is there a trade off?
@SidPrice
@SidPrice 9 ай бұрын
This looks very interesting. A future video might show how to take a "typical" developer environment with all the various tools required for various project installed locally and move the projects into their own dev containers. I am sure there are many developers who find themselves in this condition and would benefit from a demonstration of how to do this. Thank you for an excellent video!
@ani_b
@ani_b Ай бұрын
I have been a developer working on several specialized technologies, like 3D graphics, GPGPU, AI/ML and simulation. Devcontainers have changed the way I code and made it seamless to setup very complex dev enviroments, including h/w accelerated and multi-toolchain, multi-container and other kinds of environments that would take "normal" processes a giant onboarding doc and a day or more to setup. My startup is also investing heavily in devcontainer based tooling as a seamless way to IaC and deployment. Add Linux to this and you have just the BEST dev experience ever. This is the single best thing I've discovered in my 2.5 decades of programming. KUDOS, VS Code team!
@HDenizD
@HDenizD 10 ай бұрын
the fact that the code writes it self at 0:54 is fascinating.
@prasenjitnayak_
@prasenjitnayak_ 10 ай бұрын
may be black box ig or chatgpt
@prasenjitnayak_
@prasenjitnayak_ 10 ай бұрын
@@squishy-tomato yes dude. 😅 To clear the concept
@DodaGarcia
@DodaGarcia 7 ай бұрын
Lol it's GitHub Copilot making a cameo
@onofreliscano
@onofreliscano 2 ай бұрын
hahaah./yeah😁
@DiegatxoMgro
@DiegatxoMgro 2 ай бұрын
AI taken to the next level
@gorandev
@gorandev 10 ай бұрын
Thank you for this short demo, looking forward to learn about more advanced topics. I somehow skipped the part in the official documentation stating that we can get a list of the most common commands by clicking on the "Remote Indicator", thanks for bringing that up.
@tejeswar
@tejeswar 8 ай бұрын
I have been using WSL2 for creating desired environments, but that was completely manual process takes 30 minutes to completely setup and development ready. This Docker Dev container concept is really clever. Under the hood, it used WSL2 in Windows, which is very efficient and virtually no performance drop.
@michaelrobson3092
@michaelrobson3092 10 ай бұрын
I was looking for Portainer app templates yesterday that would create, an environment with all dependencies needed, this just ticks all the boxes. THANK YOU :)
@code
@code 10 ай бұрын
Thank YOU for being here and sharing your feedback!
@louderbackbarry
@louderbackbarry 10 ай бұрын
Vs code was trying to get me to install docker and dev container and I didn’t know what it was until now. So this video was extremely valuable information
@maevwat
@maevwat 10 ай бұрын
Docker is goated
@code
@code 10 ай бұрын
So glad you found it useful! Thanks for watching!
@arun279
@arun279 10 ай бұрын
This is great, I think I’ll clear out and reset my vscode and use dev containers for all my projects, everything is clean and separated out that way
@code
@code 10 ай бұрын
Yessss, dev containers make working on multiple projects so much cleaner and easier!
@LeonardoJCaballeroG
@LeonardoJCaballeroG Ай бұрын
The Dev containers are amazing, thanks for this video!
@thghtfl
@thghtfl 6 ай бұрын
Unfortunately, it didn't work with Docker containers for me, attaching to a running container just hangs forever at "Starting Dev Container"...
@robinmordasiewicz
@robinmordasiewicz 6 ай бұрын
wow, you are a very good presenter, good job.
@codernerd7076
@codernerd7076 10 ай бұрын
The video I was waiting for!
@daveg4861
@daveg4861 4 ай бұрын
Super helpful video. Thanks!
@Kayzewolf
@Kayzewolf 4 ай бұрын
Honestly, this gives me a lot of excitement on creating new projects. Setup and managing multiple dependency services like Databases is usually the biggest annoyance. So easier use of your actual code using this easy Dev Containers feature plus using docker directly for database, cache, search, etc dependencies is like night and day in my workflow.
@chetanesque158
@chetanesque158 27 күн бұрын
well done! good intro to the dev containers
@thedelanyo
@thedelanyo 10 ай бұрын
This is great, especially for python devs
@gkennedy_aiforsocialbenefit
@gkennedy_aiforsocialbenefit 5 ай бұрын
Great video. Love Docker and containers
@viomyst
@viomyst 10 ай бұрын
I love dev containers since day one. I lately came back to a project with compose setup but I was missing the "Dev Container by existing Dockerfile/Docker-compose" on the command palette. Why was this removed?
@REDIDSoft
@REDIDSoft 10 ай бұрын
Amazing!!!!! I love VSCode ❤
@georgehammond867
@georgehammond867 10 ай бұрын
That's great job 👍
@aboudezoa
@aboudezoa 9 ай бұрын
How do I keep the changed code or added additional files leveraging the installed dependencies when connected to remote container ?
@andreasmastronikolis3987
@andreasmastronikolis3987 3 ай бұрын
Really nice tutorial :) !
@louderbackbarry
@louderbackbarry 10 ай бұрын
Where can I go to learn how to do marlin firmware for 3D printers. I learned some from watching KZbin videos but I’m having a hard time to get marlin firmware to compile into firmware.bin file in visual studio code and I can’t figure out how to get GitHub copilot to work
@DaPenguin447
@DaPenguin447 10 ай бұрын
Is there a way to load extensions sequentially? Marlin Autobuild fails to load in a dev container due to being dependant on Platform IO, and Platform IO takes a few seconds to initialise properly. this isn't a problem outside a container with a persistent environment as it only fails the first time, but with a container it now fails every time
@Key_Capz_
@Key_Capz_ 10 ай бұрын
well I'll be... but can my host code compile with the container code or viceversa without it just being exclusive to the container?
@bayoudata
@bayoudata 6 ай бұрын
Thanks a lot!
@StefanoV827
@StefanoV827 9 ай бұрын
Apart from VSCode extensions, what's the difference on using just docker-compose file?
@jeffreysmith9837
@jeffreysmith9837 5 ай бұрын
Nothing. Just another repackaged tool like every software since 2010.
@ArifMatubber-km4nv
@ArifMatubber-km4nv 10 ай бұрын
Awesome 🎉
@AdamHarte
@AdamHarte 10 ай бұрын
Why do dev containers need their own config to declare VSCode extensions. We already have extensions.json, couldn't it just use that?
@audiodiwhy2195
@audiodiwhy2195 Ай бұрын
The python you container you present runs flask then an html file inside flask. I can use an html editor for that. How do you run .py files?
@scigama71
@scigama71 6 ай бұрын
Nice..very nice
@hcmlopes
@hcmlopes 10 ай бұрын
This does seem quite amazing but besides being a little easier to setup could you talk about the additional benefits or differences to just using a docker-compose file?
@technolus5742
@technolus5742 10 ай бұрын
One benefit is you can easily define vscode extensions to be used in your container.
@jeffreysmith9837
@jeffreysmith9837 5 ай бұрын
Nothing
@thephoenixstudio
@thephoenixstudio 2 ай бұрын
@@jeffreysmith9837 Wrong. This helps alleviate issues between different OSes. For example, if you have bash scripts that use `sed`, Windows dosen't support sed, and Mac and Linux (used in CI/CD) have differences. This makes sure everyone is running the same environment.
@jeffreysmith9837
@jeffreysmith9837 2 ай бұрын
@@thephoenixstudio why would I have incompatible bash scripts if I go through the effort of dockerizing the app. Might as well dockerize the bash scripts too
@thephoenixstudio
@thephoenixstudio 2 ай бұрын
@@jeffreysmith9837 That dosen't help if the scripts need to be run locally...
@akramsabir7961
@akramsabir7961 10 ай бұрын
I am unable to open folders throught vs code explorer and it is not showing any folder in vs code explorer ,someone please help
@sulfur32066
@sulfur32066 10 ай бұрын
This is all good but python extension test discovery doesn't work for two months now
@robcannon
@robcannon 10 ай бұрын
I would love to see how to keep a devcontainer that is used by lots of projects up to date across all of those projects.
@AdamHarte
@AdamHarte 10 ай бұрын
Isn't the point that you have a dev container per project? They should not be sharing. That would just be a development machine in that case
@robcannon
@robcannon 10 ай бұрын
Not when I have 60+ repos for the same team where we want to keep them all on the same set of tools. We are using GitOps and all of these repos are extremely active and it would be a nightmare if we had to manually update them (or even script something to update the devcontainer.json file and commit). But we also support 100+ other repos that have different requirements so we do want to let those repos be different based on the toolset that that dev team is using.
@ThangTran-hi3es
@ThangTran-hi3es 7 ай бұрын
MS + VSCode = Powerful
@kanishk7267
@kanishk7267 7 ай бұрын
Complex technology is indiscernible from magic
@johnm8358
@johnm8358 10 ай бұрын
Does it work with podman
@itomalux
@itomalux 10 ай бұрын
What's the difference between this Dev Containers and creating local .env?
@bjmmedeiros13
@bjmmedeiros13 10 ай бұрын
Isolation beyond python packages (environment variables, files, other dependencies, etc); automation (no need to generate and activate virtual envs then install requirements); sharing with other devs; "dev-environment-as-code"... The list goes on and on
@junaga2
@junaga2 10 ай бұрын
a container is a VM. .env is a file of variables
@xyzl4176
@xyzl4176 10 ай бұрын
support podman?
@rajaarunachalam8550
@rajaarunachalam8550 10 ай бұрын
Hey how you doing? Thank you so much for this video tutorial. Can you please help me to find Dev Container for CakePHP framework? I really need that stuff. Hope you reply me.
@deepakdonde9199
@deepakdonde9199 7 ай бұрын
Microsoft's next project : Share Application requirements with Microsoft bot and it will do everything from development to deployment and respond to you in few seconds.
@prasenjitnayak_
@prasenjitnayak_ 10 ай бұрын
Bring a android version of VS-Code ;)
@dmytrk
@dmytrk 10 ай бұрын
There is a web version
@dmytrk
@dmytrk 10 ай бұрын
@waterbonkle6346 yeah, it never meant to be as usable, as on pc, but they showed in some video, that you can do some small work, such as fixing typos, while being on vacation without your laptop
@dmytrk
@dmytrk 10 ай бұрын
@@squishy-tomato maybe, Termux with Vim/NeoVim could do better
@prasenjitnayak_
@prasenjitnayak_ 10 ай бұрын
@@squishy-tomato well said man
@prasenjitnayak_
@prasenjitnayak_ 10 ай бұрын
@@dmytrk bringing an android version will help a lot of people, like those who haven't any laptop or desktop.
@RetiredInThailand
@RetiredInThailand 10 ай бұрын
I don't want to sound unappreciative as this video explains a bit more than most, but I've never written any serious code that was a simple one container, python static webpage. When are we going to get some 'best practices' on real applications with real configurations of multiple containers (app, web, database, etc.) I've basically given up on using the VSCode built in 'devcontainer' support and gone back to just writing up docket-composer and dockerfiles as using the command pallet process always gives confusing prompts about overwriting things, and no matter what I answer it's always a case of it 'not working', so I just go back to mostly manual configuration. Lots of potential, but just not quite 'there' enough to delivery on the promise it 'seems' to claim to offer (quick, effortless set up and configuration of an application ... Real application, not just a simple sample single container .. environment.)
@rehthro
@rehthro 10 ай бұрын
I like it, isolated environments for whatever project you want to quickly work on without breaking or mutating your own environment. Adoption is going to take a while though
@RetiredInThailand
@RetiredInThailand 10 ай бұрын
@@rehthro oh, I get that, but if I'm going to work on an application that only requires one container then I'm not sure how much actual effort I'll be saving using VSCode devcontainers vs just pulling an image from docker hub and attaching to it? The argument that I can share the devcontainer with the team for consistency seems a bit hallow in that would I really be working with a team to build an app that only used one 'technology' in one container? Maybe? But again I'm not sure how much effort devcontainer saves vs a readme with a 'docker run' command?
@code
@code 10 ай бұрын
Thanks so much for your feedback!! We love hearing what content we can put out that will be the most helpful, and we'll add this to our list of future ideas for a video or livestream!
@RetiredInThailand
@RetiredInThailand 10 ай бұрын
@@squishy-tomato but you don't need containers to do any of that configuration, the are profiles that can do almost all of that stuff ... Don't need Docker containers to do any of that.
@vitorleal666
@vitorleal666 4 ай бұрын
You realize you can use docker-compose with this... right? This is only a different way to spin up a Docker container.
@randomforest_dev
@randomforest_dev 10 ай бұрын
Btw, is she Jennifer Connelly's sister 😅
@littlebrit
@littlebrit 9 ай бұрын
Feels like watching an advertisement.
@TheSampirat
@TheSampirat 10 ай бұрын
not sure how that would apply to "dev" in general, seams very specific to webdev
@sampirat
@sampirat 9 ай бұрын
@@user-tx4wj7qk4t i'm sure you can use similar tools for other kind of dev, but this tutorial in pretty specific
@Naej7
@Naej7 10 ай бұрын
The facecam looks like it has been generated by an AI lmao
@coolemur976
@coolemur976 10 ай бұрын
If only those plugins were included in your IDE. Then there would be no need to configure them in dev-contianers...
@rehthro
@rehthro 10 ай бұрын
I like! but what we really need is a cloud operating system.
@Paro2221
@Paro2221 10 ай бұрын
what about no
@maevwat
@maevwat 10 ай бұрын
ssh into vps
@sTL45oUw
@sTL45oUw 6 ай бұрын
I hate to say it but she's rambling. I would feel better if it was a guy. I also have a feeling a guy would not talk so much.
@MarkConstable
@MarkConstable 10 ай бұрын
Docker... no, not interested.
How to change the user in a dev container
1:05
Visual Studio Code
Рет қаралды 11 М.
I tried 10 code editors
10:28
Fireship
Рет қаралды 2,9 МЛН
Scary Teacher 3D Nick Troll Squid Game in Brush Teeth White or Black Challenge #shorts
00:47
Каха и суп
00:39
К-Media
Рет қаралды 6 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 75 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 157 МЛН
Customize Dev Containers in VS Code with Dockerfiles and Docker Compose
6:16
you NEED to use VS Code RIGHT NOW!!
12:48
NetworkChuck
Рет қаралды 559 М.
How I deploy serverless containers for free
6:33
Beyond Fireship
Рет қаралды 464 М.
Getting Started with Kestra in 15 minutes
14:14
Kestra
Рет қаралды 6 М.
Never install locally
5:45
Coderized
Рет қаралды 1,7 МЛН
Software engineer interns on their first day be like...
2:21
Frying Pan
Рет қаралды 13 МЛН
Speed Up Your Dev Container Workflow with Prebuilds
6:53
Visual Studio Code
Рет қаралды 10 М.
My Favorite Way To Handle Dev Environments | VS Code Devcontainers
30:05
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 826 М.
PART 52 || DIY Wireless Switch forElectronic Lights - Easy Guide!
1:01
HUBAB__OFFICIAL
Рет қаралды 67 МЛН
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
Klavye İle Trafik Işığını Yönetmek #shorts
0:18
Osman Kabadayı
Рет қаралды 5 МЛН
Easy Art with AR Drawing App - Step by step for Beginners
0:27
Melli Art School
Рет қаралды 15 МЛН
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 14 МЛН
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2 МЛН