Developing on Windows with WSL2 (Subsystem for Linux), VS Code, Docker, and the Terminal

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.พ. 2025

ความคิดเห็น • 597

  • @n4rzul
    @n4rzul 5 ปีที่แล้ว +930

    It's the year of Linux on the Desktop... Brought to you by windows... What a time to be alive.

    • @Cyber_Lanka
      @Cyber_Lanka 5 ปีที่แล้ว +48

      I want to kill myself

    • @Tux0xFF
      @Tux0xFF 5 ปีที่แล้ว +4

      Lol, indeed

    • @deadeye1982a
      @deadeye1982a 5 ปีที่แล้ว +17

      My guess was, that MS will buy Canonical and will release MS Linux 10. Maybe in the future.

    • @raymundhofmann7661
      @raymundhofmann7661 5 ปีที่แล้ว +4

      @@deadeye1982a Maybe even developers will appreciate this to evade the Linux kernel development code of conduct, simply to chose the lesser evil?

    • @deadeye1982a
      @deadeye1982a 5 ปีที่แล้ว +5

      @@raymundhofmann7661 I haven't read the Code of Conduct, but let me guess: They are also on the gendermainstreaming / feminism train like many others?

  • @kdietz65
    @kdietz65 5 ปีที่แล้ว +513

    The start of the video is like an AA meeting. "Hi, my name is Scott and I'm a Windows developer". Audience refrain ... "Hiiii Scoootttt"
    I'm not exactly sure how I got here. I was raised in a good home. My parents taught me right from wrong. My professors used UNIX. I was taught to treat everything as a file, have redirectable I/O, compose command line programs into small, reusable pieces, give everything a man page, have instant access to ssh, and use a resizable command shell with mutliple tabs and panes that gave me a full suite of OS tools and used a Turing complete command line interface. I knew all of those things. Then my parents got divorced when I was in high school and I felt kind lost. Like I didn't belong anywhere. Started hanging out with the wrong crowd. I saw a friend of mine using Windows 95 and he asked me if I wanted to try it. I still remember that first taste. God it tasted so bad.But I was just mesmorized. It's all a blur after that. The blue screen of deaths got so bad I had to start hiding my laptops in the back of my underwear drawer. It was just a downward spiral. Windows 98, Windows ME, Windows NT, XP, and then, oh God, Vista!!! I just couldn't find my way back.

    • @teknastyk
      @teknastyk 5 ปีที่แล้ว +10

      🤣 aaahh games.. and then windows.. it ruined my life. XD

    • @ahmadkhudai
      @ahmadkhudai 5 ปีที่แล้ว +5

      Hope you get well soon

    • @dorion9111
      @dorion9111 4 ปีที่แล้ว +7

      Sounds like this might have came from a place of truth. Got anything else you need to tell us before we break for Prayer?

    • @octavianc.2569
      @octavianc.2569 4 ปีที่แล้ว +6

      /r/copypasta

    • @marsrover7952
      @marsrover7952 4 ปีที่แล้ว

      haha, very good

  • @MrChickenpoulet
    @MrChickenpoulet 5 ปีที่แล้ว +105

    This is really amazing ! Even though I am (and I guess I'll stay) on linux, I find this evolution amazing.
    The microsoft team did an awesome work on WSL, the new console, vscode and so on !

  • @Tout-Le-Monde02
    @Tout-Le-Monde02 4 ปีที่แล้ว +8

    The most informative, well-explained video on WSL I have seen so far ....

  • @dinhof
    @dinhof 4 ปีที่แล้ว +31

    After roughly my entire backend development career working on osx, I'm giving this a try on a new cheaper and more powerful notebook.
    I'm honestly excited to have access to games and other great software on my dev machine.
    Well played, Microsoft.

  • @807800
    @807800 4 ปีที่แล้ว +1

    Damn dude. I've been searching for an easy explanation about WSL2 and yours is so far the easiest to follow. Well done!.

  • @benfeisttoronto
    @benfeisttoronto 5 ปีที่แล้ว +17

    Great stuff, scott. Thanks for getting me started with all of this. I can't believe I'm running my python processors on linux on my windows computer. All of the reasons I prefer mac for python just went away.

  • @reachsatish
    @reachsatish 5 ปีที่แล้ว +2

    Scott, thanks for the vid. I have been using WSL at home and it is wonderful to get the best of both worlds. I have stopped thinking about switching Mac. Keep those videos coming.

  • @robl39
    @robl39 4 ปีที่แล้ว +5

    Scott - thanks for turning me on to the new Windows Terminal! I love it.

  • @yetAnotherGuyOnTheInternet
    @yetAnotherGuyOnTheInternet 2 ปีที่แล้ว +1

    I use the latest gcc Emacs on UBUNTU 20.04 via Wsl2 and i don't have to install any drivers...
    Microsoft has really hit the sweet spot between open source and proprietary stuff...
    True freedom without losing my privacy...
    Heaven for a lazy guy like me...

  • @0xggbrnr
    @0xggbrnr 4 ปีที่แล้ว

    I can't thank you enough for this. Long-time software engineer, just started diving into the Windows 10 WSL2. Excellent overview here. Thanks a lot.

  • @DieterGribnitz
    @DieterGribnitz 5 ปีที่แล้ว +50

    This looks very promising. Over the last ~10 years I have migrated from Windows to macOs to LInux. Seems like the time might finally have arrived for me to go full circle and migrate back to Windows. As a web developer the Windows file system and lack of terminal was a dealbreaker for me. I also see there is a solution for the 260 character path limit now. I think this checks all the boxes now. Can't wait to be able to use some dearly missed windows software again.

    • @DieterGribnitz
      @DieterGribnitz 5 ปีที่แล้ว +7

      Lics Norgi Adobe and Autodesk products like 3D studio max and Photoshop etc. and the windows version of navicat as well. I bought a new PC to try WSL out and really regretted trying to use windows as my primary os. WSL is not ready for serious web developers in my opinion and has a long way to go. Plus windows does a lot of small things wrong that really messed with my workflow. Especially relating to multiple workspaces and screens. I really tried but had nothing but issues. My new Razen 3600 felt a lot slower with windows on it than my 6 year old core2duo feels running linux. I installed linux on a new 1tb NVMe on the new pc this morning and am duel booting again with windows running in virtual box when needed for apps. The windows drive has now become a dedicated drive for gaming. I found Virtual box is really slow when running it from windows but it is much faster the other way around. WSL issues I had include: file permissions stuck on 777 666 when creating files with explored; Many packages won't run like sshfs and the windows counterpart is much slower causing my intelisense not to work when editing files on a live server; My one project is now littered with CRLF instead of LF; Multiple docker containers I use just won't run; getting docker to work along side virtualbox is a nightmare; Illogical file structure and navigation especially relating to desktop, home directory and search results with nonsensical parent paths; The list goes on but you get the idea. It was not the welcome home I expected and everything I did felt somehow dirty. Slapping ubuntu on windows is no compromise for a native unix environment. This is just a word of warning to anyone thinking of trying the same thing. Your experience may differ but it did nothing but introduce issues where none existed for me. I really missed crtl+alt+t, logical file structures, working file permissions and my sanity. Seems like I am officially a linux fanboy now.

    • @DieterGribnitz
      @DieterGribnitz 5 ปีที่แล้ว +2

      Lics Norgi And that is the short version. LoL. It all depends on what you use it for. Best to use the right tool for the job, they both have their place and use case. Trying to use windows for web development is like using a chainsaw to spread butter on a sandwich. It can be done but it will be messy, much more difficult and someone might get injured. Just like you wouldn't use a butter knife to cut down a tree.

    • @Oswee
      @Oswee 5 ปีที่แล้ว

      @@DieterGribnitz Tnx for your comment! :)

    • @bbmatfreddy
      @bbmatfreddy 4 ปีที่แล้ว

      Powershell is as powerful as any command-line tool in Linux to fully configure clients, servers, server-nodes, hardware components, ...and that for years now...

    • @Anhar001
      @Anhar001 4 ปีที่แล้ว +1

      @@DieterGribnitz I used to use 3D Studio Max, take a look at Blender it has come a huge way, I still can't believe how good Blender is right now!

  • @MykeBates
    @MykeBates 5 ปีที่แล้ว +5

    Can you imagine knowing this is where we’d be 10 years ago? Simply amazing!

    • @snackers7
      @snackers7 5 ปีที่แล้ว

      Amazing because MS waiting for destroy Linux? Are you crazy and blind?

    • @snackers7
      @snackers7 4 ปีที่แล้ว

      @Game Over I hope so.

    • @diablo.the.cheater
      @diablo.the.cheater 4 ปีที่แล้ว

      @@snackers7 I really really hope MS does that.

    • @snackers7
      @snackers7 4 ปีที่แล้ว +1

      @@diablo.the.cheater You hope MS do that? Dont like free and open source software?

    • @diablo.the.cheater
      @diablo.the.cheater 4 ปีที่แล้ว

      @@snackers7 No, free and open-source software is evil, software should be as closed as a black hole and as expensive as a rocket.

  • @AndrewKwabula
    @AndrewKwabula 2 ปีที่แล้ว

    Thank you, Scott. You are an absolute legend. I went through Microsoft's explanation of WSL but it remained greek to me. You broke it into tiny pieces and explained every piece by doing.

  • @MorneWolfaardt
    @MorneWolfaardt 5 ปีที่แล้ว +14

    Mind blown like always with Scott's videos

  • @gelatus_watches
    @gelatus_watches 5 ปีที่แล้ว +3

    Thanks Scott, very informative video. I've been using WSL for Linux development for a while now. I mainly do Java back-end and scripting stuff, so WSL1 works great for me. I switched to the new Windows Terminal and I'm very happy with it. Creating new color schemes is a bit difficult, but I like the ones that it ships with well enough.

  • @mmmmigs
    @mmmmigs 5 ปีที่แล้ว +2

    kind of refreshing hearing someone take this perspective and vlog about it when you see so much windows hate out there. there are a few little things that bug me about windows but overall i really like it especially with these "developer"/linux friendly additions. great video, thanks for sharing!

    • @MrDubs
      @MrDubs 5 ปีที่แล้ว +1

      I never understood the pp-sizing over different environments. It's like pp-sizing over nano, Vim, and emacs.. pointless.

  • @matthewzecchini9951
    @matthewzecchini9951 4 ปีที่แล้ว +1

    Thank you for sharing your knowledge and having a positive impact on the community.

  • @fooked1
    @fooked1 5 ปีที่แล้ว +138

    Perfect timing by MS. I've been developing on MacBook Pros for years, but Apple has really trashed them with the touchbar and keyboard fiasco. I'm a vim user and they've taken away the physical esc key. Plus they're really expensive. Nice to know I can switch to windows yet feel right at home in a *nix system.

    • @OsmoZchannel
      @OsmoZchannel 5 ปีที่แล้ว +20

      ever heard of linux ?

    • @fooked1
      @fooked1 5 ปีที่แล้ว +3

      @@OsmoZchannel Yeah

    • @ThePandaGuitar
      @ThePandaGuitar 5 ปีที่แล้ว +1

      I'm in exactly the same situation as you.

    • @kevcoder
      @kevcoder 5 ปีที่แล้ว +7

      I'm a linux fan boy, but most of my people are complete idiots. This is the market M$ is actually going after.

    • @ghostinc7
      @ghostinc7 5 ปีที่แล้ว +2

      if I was you. I would load up linux. get used to it. microsoft is eventually going toward an linux style OS. You heard it hear first!

  • @tehsimo
    @tehsimo 5 ปีที่แล้ว +24

    This is a great... havent seen most of this broken down simply before

  • @danielnderitu5886
    @danielnderitu5886 2 ปีที่แล้ว

    I have learnt a lot within a very short time; thank you so much Scott.

  • @kenchang3456
    @kenchang3456 5 ปีที่แล้ว +2

    THIS IS GREAT!!! Thank you very much. It pretty much describes what I had in my head and now I know it can be done, and very easily thanks to you.

  • @BrandonSchenz
    @BrandonSchenz 5 ปีที่แล้ว +5

    Thank you for this walk through. Love you Scott!

  • @andrewsquest628
    @andrewsquest628 ปีที่แล้ว

    You pour such a massive stream of useful and structured information in this vid! I'm greatly impressed and thankful!

  • @mike-barber
    @mike-barber 5 ปีที่แล้ว +1

    This is going to be awesome! Thanks for the video. I can't wait for my corporate bureaucrats to update from 1803 so I can get started with this stuff; as it is currently, I'm running Docker in Linux on VirtualBox, and scraping by using VS Code Remote (ssh). WSL2 will definitely make my life quite a bit easier.

  • @greggard5825
    @greggard5825 5 ปีที่แล้ว +3

    just wanted to say my thanks for putting this up and keep them coming.

  • @tharshan09
    @tharshan09 5 ปีที่แล้ว

    Thanks for the great video. I been really on the fence about ditching macOS and going to Windows, but this has really sold me. They solved all the issues with WSL1.

  • @bbmatfreddy
    @bbmatfreddy 4 ปีที่แล้ว +3

    Funny how Scott explicitly mentioned that this video might not be for those with a dislike for Windows, yet 3/4 of the comments section is trashed by windows haters. Ironically, the video is all about VS Code working within a Linux environment. The same that happened to musical composing/arranging software, architectural software, and CAD/BIM applications, is happening now in other areas as well: Mac die-hards had it handed to them by MS/Windows. Most every modern musical software is developed first and foremost for Windows OS, architectural software on Windows (Autocad, Revit, Chief Architect, ...), and CAD applications as well. Where are all the artsy Windows haters? Right, they all use Windows now because the newest software applications run nowhere else but on Windows, some on Mac. And now Microsoft is making code development for Windows users easier than ever.
    Nobody is peeing on Linux, yet each time MS/Windows comes up with innovative ways to increase productivity for developers on Windows machines an avalanche of Linux folks are descending on the Windows space and start attacking. Someone feels threatened it almost appears...

  • @garrettkim2429
    @garrettkim2429 5 ปีที่แล้ว +2

    This is awesome. I've been using WSL and the stable version of Docker so I couldn't access my containers via linux. Gonna install the technical preview tonight.

  • @ThePandaGuitar
    @ThePandaGuitar 5 ปีที่แล้ว +2

    I have a feeling we're all going back full circle to Windows very soon after all these years. This is amazing.

  • @WinstonCodesOn
    @WinstonCodesOn 4 ปีที่แล้ว +2

    Thank you so much for this tutorial! Incredibly useful information for someone like me switching back to Windows after doing development on the Mac for a few years. A lot has changed at Microsoft! (and Apple too, but not in a good way)

  • @kCuFfication
    @kCuFfication 3 ปีที่แล้ว

    Yo! This video was 100% watchable. Congratulations.

  • @xC-db6st
    @xC-db6st 3 ปีที่แล้ว +1

    Switching from writing code on macOS to Windows after almost 6 years. This video was really useful and informative. Thank you, I've subscribed 👏👏

  • @user-cc8kb
    @user-cc8kb 5 ปีที่แล้ว +63

    The next logical step is to get rid of windows entirely. This makes the Linux experience even smoother!

    • @トヤマトカナワ
      @トヤマトカナワ 5 ปีที่แล้ว

      next step is to make the same thing on linux! (don't even try to mention vine)

    • @pijushgupta1988
      @pijushgupta1988 5 ปีที่แล้ว +4

      Tribalism is real.

    • @トヤマトカナワ
      @トヤマトカナワ 5 ปีที่แล้ว

      @M T y y

    • @itznukeey
      @itznukeey 5 ปีที่แล้ว

      Dunno, like Linux for me lacks all the features i use on windows, sure it may be better for you but I wasnt able to get any program to change saturation of my monitor or play certain games windows can, think this is way better than having to dual boot everytime you need something from linux

  • @kimlianlopez5282
    @kimlianlopez5282 4 ปีที่แล้ว +1

    that terminal is so slick. Thanks man! Great vid :)

  • @vjcspy
    @vjcspy 3 ปีที่แล้ว +1

    It is amazing. I have been worked on macos for 8 years. It is time to go back windows

  • @jayhu6075
    @jayhu6075 5 ปีที่แล้ว +1

    You are the master. Thx for the great explanation. Hopely more about WSL2

  • @daniloloko5
    @daniloloko5 5 ปีที่แล้ว +6

    This is amazing Scott!

  • @paolo_in_corsivo
    @paolo_in_corsivo 5 ปีที่แล้ว

    Thankyou so much! a very useful video. This is the kind of setup that I was already about to set to my everyday working environment, but the multi-tab-multi-machine shell interface will bring it to new hights

  • @thousandtyonesoftware
    @thousandtyonesoftware 5 ปีที่แล้ว +3

    It's amazing that Microsoft is focusing on Linux and making the interop possible. If Linux focused enough on wine, and gave options of running office, live writer, SQL management studio and visual studio 2019, that would be the ultimate gift folks at Ubuntu and Microsoft can give programmers. Complete freedom - use a functional Linux inside windows or a functional windows inside Linux. That would be so awesome!

    • @xphumanikus
      @xphumanikus 5 ปีที่แล้ว +2

      ThousandtyOne Software LLP It's (Embrace, Extend, Extinguish) strategy of Microsoft.

  • @onetapmediaofficial
    @onetapmediaofficial 4 ปีที่แล้ว

    Amazing features . I am gonna try this in my PC .Thanks Scott for explaning.

  • @realjoakim1337
    @realjoakim1337 3 ปีที่แล้ว

    Great video! Absolutely loved this. I'm now set up and ready to go.

  • @smallmoneybigmoney
    @smallmoneybigmoney 5 ปีที่แล้ว +1

    You are a boss dude. Thanks for showcasing WSL 2.

  • @VamsiMohanKrishnaVadrevu
    @VamsiMohanKrishnaVadrevu 4 ปีที่แล้ว

    This is mind blowing! How have I not heard of this before!!!

  • @kettenbach
    @kettenbach 5 ปีที่แล้ว +2

    Great video Scott. Mind blown 😍‼️👍

  • @AssadKhan1
    @AssadKhan1 3 ปีที่แล้ว

    This is actually amazing
    Kudos Microsoft team

  • @lordhriley
    @lordhriley 4 ปีที่แล้ว +1

    Scott you are the man....!

  • @trentsteel9416
    @trentsteel9416 4 ปีที่แล้ว +1

    This is a very important video. Amazing, thank you!

  • @ghostinc7
    @ghostinc7 5 ปีที่แล้ว +14

    Being a linux user for a while. This video prompted me to load up windows and test it out. After a few hours. I was like nope can't do it.. back full time on linux.
    Its still to clunky and doesnt have the flow of a true linux term environment for me.
    But it was better then before. I will give them that!

  • @epictetusjr.7581
    @epictetusjr.7581 3 ปีที่แล้ว

    this was a great video and you style really works well

  • @brennorris1720
    @brennorris1720 5 ปีที่แล้ว

    Great overview of whats coming for WSL, thanks!

  • @Ersaurabhsaxena
    @Ersaurabhsaxena 4 ปีที่แล้ว

    WSL2 is marvelous engineering and game changing stuff from Microsoft guys...they got left behind for sometime in the open source world..but first with vscode and now with this awesome linux subsystem they are definitely back in the game...kudos

  • @jammrock9286
    @jammrock9286 3 ปีที่แล้ว +1

    On the Insider fast (DEV channel) you can type "wsl --install" and all the steps necessary to install and configure WSL will happen. I believe it pulls down Ubuntu automatically as part of the process, or you can specify a different distro using -d.

  • @OfferoC
    @OfferoC 5 ปีที่แล้ว

    this is just fantastic. I can't wait for wsl 2 to be available in the slow insiders.

  • @TheDustin151
    @TheDustin151 5 ปีที่แล้ว +55

    I use Windows, OS X, and Linux. Each has its purpose.

    • @TienHuynh5312
      @TienHuynh5312 5 ปีที่แล้ว +11

      the only reason I suspect that you use OSX is Xcode :))

    • @ichaa3tech
      @ichaa3tech 4 ปีที่แล้ว +3

      Yea except os x its just for girls

    • @sdolo222
      @sdolo222 4 ปีที่แล้ว

      @@ichaa3tech linux was invented in os x

  • @nguyenhoangminh6775
    @nguyenhoangminh6775 3 ปีที่แล้ว

    Excellent tutorial for excellent features!

  • @marcocerrato9014
    @marcocerrato9014 5 ปีที่แล้ว +2

    Loved it. Thank you. Amazing video. If possible do a tutorial on this topic.

  • @deadeye1982a
    @deadeye1982a 5 ปีที่แล้ว

    I am not a MS-Fanboy (using Arch Linux), but this impressed me and it's not easy to impress me.

  • @michaelpowell2350
    @michaelpowell2350 5 ปีที่แล้ว +3

    12:00 What happens for things like debugging and core dumps? Whose core is it at that point?

    • @noutkleef4458
      @noutkleef4458 5 ปีที่แล้ว

      When I was running a C executable on WSL, I was not able to get a core dump to show up anywhere. I have not attempted to fix this issue by running it through the WSL remote in VSCode, though

  • @CatsAndCode
    @CatsAndCode 3 ปีที่แล้ว

    great video scott!!!! gonna watch more

  • @yuriykazmirchuk9641
    @yuriykazmirchuk9641 4 ปีที่แล้ว

    This is a very awesome staff , thank you! 😎👍

  • @TheHaykokalipsis
    @TheHaykokalipsis 5 ปีที่แล้ว +1

    Can anyone explain me why we need this? Not trying to say we dont, i just watched 4 videos explaining how to install and run this, but i never did catch the idea why. Im fullstack web developer, never tried linux or mac so i just dont get it. What does it give me as a developer that i dont have on windows? I apologise for my English.

  • @breakdancerQ
    @breakdancerQ 5 ปีที่แล้ว

    Wtf that's cool, I was really to switch to windows but this certainly eases my mind! This really is amazing!

  • @ragerdl
    @ragerdl 5 ปีที่แล้ว

    This is great, thanks for organizing a nice little presentation.

  • @edward_t450
    @edward_t450 5 ปีที่แล้ว

    Very Good video Scott. Thanks.

  • @indylawi5021
    @indylawi5021 4 ปีที่แล้ว

    WSL2 is fantastic! Thanks for the great intro, Scott.

  • @lukehero
    @lukehero 5 ปีที่แล้ว

    This is great stuff. I was using a Macbook before but it was getting a bit old and Apple don't offer any reliable laptops these days, picked up a regular laptop and was using Linux but my hardware was so poorly optimised on it. Now on Win10 and laptop runs very nice, really glad I can still work with a Unix system for server stuff! MS are doing good things for devs with WSL and the new terminal.

  • @svenmalvik
    @svenmalvik 2 ปีที่แล้ว

    Yarn + WSL was extremely slow for me - at first. Now that I know what to watch out for, I’m looking forward to find more NEED TO KNOW "issues". 😮

  • @masiafmasiaf2204
    @masiafmasiaf2204 3 ปีที่แล้ว

    I do use Wsl to development, so I don’t have to install a lot of program on win, now I can do gaming of my only win/mac platform games on windows, and still do development on Linux!!

  • @robertstrajher8557
    @robertstrajher8557 5 ปีที่แล้ว +1

    Awesome video. Thanks for this nice overview.

  • @margosdesarian
    @margosdesarian 4 ปีที่แล้ว

    Great Video Scott!

  • @_DUx
    @_DUx 3 ปีที่แล้ว

    “If you’re watching this video in the future” I feel so cool at this moment! Where is my DeLorean?!

  • @MarcelDempers
    @MarcelDempers 5 ปีที่แล้ว +2

    Awesome video! I'm keen to make WSL videos after my Kubernetes series is done 🐧🐳

  • @PaulPushkarov
    @PaulPushkarov 5 ปีที่แล้ว +3

    My understanding is that now wsl requires hyper-v enabled... And you won't be able to take advantage of both this and, say, virtualBox at the same time. Is it correct? Thank you for the video.

    • @pilotboba
      @pilotboba 5 ปีที่แล้ว

      Correct. But, Hyper-V can replace everything you are doing with VirtualBox.

    • @dpjb78
      @dpjb78 5 ปีที่แล้ว

      Hyper-V is needed only for Docker integration into WSL

  • @alainmari5801
    @alainmari5801 4 ปีที่แล้ว

    Great demo ! Thanks a lot Scott !!

  • @jordanstewart225
    @jordanstewart225 5 ปีที่แล้ว

    Nice practical video Scott

  • @HumbertoRamosCosta
    @HumbertoRamosCosta 5 ปีที่แล้ว

    A lot of developers prefer to use Windows and sometimes have to develop for Unices, so this is a fantastic feature.

  • @marouane55
    @marouane55 5 ปีที่แล้ว +5

    @Scott Hanselman is the IO performance fixed in WSL 2 ?

  • @ranajitjana4030
    @ranajitjana4030 4 ปีที่แล้ว

    Loved this but I am not seeing the option Subsystem for linux, assume the bios settings for virtualization is already set.

  • @RobMeijerUk
    @RobMeijerUk 5 ปีที่แล้ว +2

    This is so close to being my perfect development environment. The only thing I'm still missing, is support for other IDEs besides VSCode, and have it be usable.
    Also, a weird thing is that it only works if you run docker from Windows, as you did here. If you run docker-compose, it tries to connect to the old Docker Engine running in Windows, rather than the one in WSL2.
    But that said, this is all still under development, so hopefully it will continue to improve in the coming months.

    • @shanselman
      @shanselman  5 ปีที่แล้ว

      Did you set your docker context manually? Docker-compose doesn't respect that?

    • @RobMeijerUk
      @RobMeijerUk 5 ปีที่แล้ว

      @@shanselman yeah ... it doesn't for some reason. it's a known issue.

    • @tomek.z
      @tomek.z 5 ปีที่แล้ว

      That's the main problem with WSL for me. Why bother installing and configuring all the apps in both Windows and WSL if it simply works on Windows itself? What exactly is more efficient to run/develop on Linux/WSL than on Windows?

    • @pilotboba
      @pilotboba 5 ปีที่แล้ว +1

      @@tomek.z My tought would be, because your production deployment environment is linux. So, you can develop on windows and basically run/test in linux without the overhead of setting up a full VM locally or in the cloud.

    • @tomek.z
      @tomek.z 5 ปีที่แล้ว

      @@pilotboba That's what Docker is for and it works perfectly on Windows without WSL. Besides the only problem I encountered in last 10 years of developing on Windows and deploying on Linux is files/folders permissions. That's something you can set with one command on the server after the deployment so I don't see much point of using additional tools for that and waste time and resources to maintain everything twice.

  • @mloskot
    @mloskot 4 ปีที่แล้ว

    At 13:15 is the major takeway about Docker and WSL2, that it is shell agnostic, what actually seems missing from the official docs of both :)

  • @sagarnegi
    @sagarnegi 4 ปีที่แล้ว +1

    transition from thumbnail to video 🔥

  • @raghobadesai5515
    @raghobadesai5515 4 ปีที่แล้ว

    Hi Scott
    Thanks for the Nice overview of possibilities in WSL2.
    Could you please share the links to articles in video description ?

  • @onurolce
    @onurolce 4 ปีที่แล้ว

    what is the first step and needed application or OS for developing software for embedded Linux device such as Hand Terminals ?

  • @Cryosxify
    @Cryosxify 5 ปีที่แล้ว +1

    Setup my desktop with wsl2 and windows openssh. Use my MacBook with code insiders to ssh to my windows computer and develop inside of wsl2 :D
    Only problem is I have to Port proxy the ports I'm going to use inside wsl2 from windows host to the vm's internal ip though. This is when I want to be able to reach my node app on wsl2 from my MacBook.

  • @lutherdang4008
    @lutherdang4008 4 ปีที่แล้ว

    That's so great!! Maybe I haven't to use parallel Ubuntu Linux and Windows 10 anymore, it has made pressing on my storages for many months XD.
    Thanks for sharing!!

  • @ertwro
    @ertwro 5 ปีที่แล้ว +1

    Hey, it's you! I just found this channel.

  • @hmass2196
    @hmass2196 5 ปีที่แล้ว

    Cool! Keep'em coming Scott.

  • @jacintdavid5333
    @jacintdavid5333 3 ปีที่แล้ว

    at 08:00 when I try to follow your instructions I get a message below the command: "/mnt/c/Users/Yatz_ZZZ/AppData/Local/Programs/Microsoft VS Code/bin/code: 46: cannot create /tmp/remote-wsl-loc.txt: Permission denied" and I can only seem to open VSCode in Restricted Mode. Can help please?

  • @natetronn
    @natetronn 4 ปีที่แล้ว

    Great walk through. Now if we can get wsl --mount for mounting Linux ext4 drives I'll be happy. It was in the recent Insiders Build but, they pulled it due to a bug so, I'll have to wait for the next update (or that build to be released again.)

  • @luismiguelrodriguez4561
    @luismiguelrodriguez4561 4 ปีที่แล้ว

    This is awesome, thinking in a hard to write docker on windows, i will try, thanks for share.

  • @ahmedharoon2740
    @ahmedharoon2740 4 ปีที่แล้ว

    hi, thanks very much for your efforts. have 2 questions: -1) what extension you have used at --10:07-- (is it node exec which executes with F8 - you pressed F5 - or another one) and- (first one solved and its now Strikeout) 2) if a person created dev environment, created app, worked an hour or 2 (didn't yet backed-up) and suddenly windows crashed, the developer will lost everything he/she created on WSL ?? IMO in case of dual boot or a VM he/she can have all things to continue his/her efforts. Just wants to know what you or people are saying for this situation?

  • @Syaneet
    @Syaneet 2 ปีที่แล้ว

    Great video. But let's say I am running a database server in windows. Can I use database using localhost as address or do I need to go through IP? Similarly, what if my database is running inside wsl ubuntu. Can I connect it using localhost from windows or do I need to go through IP?

  • @pierrendokondoko9581
    @pierrendokondoko9581 2 ปีที่แล้ว

    Thanks a lot ! It really helped me !

  • @eliassal1
    @eliassal1 4 ปีที่แล้ว

    fantastic Scott. Can we replace the powershel integrated in VSC by windows terminal?

  • @Zorish373
    @Zorish373 4 ปีที่แล้ว

    Thank you, this tutorial helped me a lot!

  • @grayloveless784
    @grayloveless784 5 ปีที่แล้ว

    Great as always! Thanks!

  • @3um
    @3um 5 ปีที่แล้ว

    Are there any perks of running docker under the linux (wsl)? I always used Vagrant for development on Windows, now I'm trying to get into something new. I thought about WSL, and Docker, but never even thought of using Docker under WSL, lol.

  • @ssbhatia
    @ssbhatia 4 ปีที่แล้ว

    Read more on how to customize Windows Terminal:
    www.hanselman.com/blog/ItsTimeForYouToInstallWindowsTerminal.aspx
    At 5:40, Scott's profiles.json sample:
    gist.github.com/shanselman/4d954449914664024ee20ba10c2aaa0d?WT.mc_id=-blog-scottha

  • @kumarsaurabhraj2538
    @kumarsaurabhraj2538 4 ปีที่แล้ว

    oh my god... this really blew my mind... its gonna be a huge thing for student developers like me who cannot afford mac..