Thank you for a very clear and concise explanation of the process from end to end. As somebody who is brand new to wsl2, docker and dev containers.....this was extremely straightforward.
Amazing. I love it. A very educational tutorial as always David. How amazingly things you can do with today's technology and thanks for the knowledge sharing us usual. Cheers David
Hi David, @ 2.13 in the video , you mention about selecting 'Windows Hypervisor Platform'. Should that have been "Virtual Machine Platform" ? I saw this video immediately after your WSL2 : Getting Started video. BTW - Thanks for making these videos - you make it easier to understand.
Just came across your channel David. You're method of explanation is absolutely unparalleled. I am a newb to the Linux world but my occupation requires I learn it. I look forward to see many more of your wonderful videos.
Thanks a lot for the thorough tutorial. I got a permission denied at 7:45 and used "sudo" to fix it: sudo docker run -d -p 80:80 docker/getting-started
Why, oh why, would anyone give this video a thumbs-down? David's videos on WSL are some of the best on UA-cam. Great work. I tried WSL1 and did a little with it but after hearing about WSL2 I went back to my Linux box. Now, with WSL2 I am moving my docker containers from my Linux box to Windows--thanks to your help. Thank you, David.
Awesome ................ Ur voice reminds me of the Biblical David. U have been gifted with a fantastic voice ....... Its dominating and judgemental. I had an issue of running docker on WSL1. I have shed tears of blood doing all sorts of hacks. I have seen both ur videos ............ WSL2 installation & setting up docker on WSL2. U made it appear soooooooooooo simple Thr is another caveat in Windows Pro ............. The Virtualization needs to be enabled in Firmware(BIOS), else docker installation would hang on WinPro. I have faced it .......... Hyper-V Requirements: VM Monitor Mode Extensions: Yes Virtualization Enabled In Firmware: Yes Second Level Address Translation: Yes Data Execution Prevention Available: Yes Thanks a Ton David ................ God bless you , ur family & ur generations.
Note: I made a mistake in the video at 2:12 - prerequisites for WSL2 are: "Windows Subsystem for Linux" and "Virtual Machine Platform" Menu: Overview: 0:00 Prerequisites: 0:27 Download Docker Desktop for Windows: 2:39 Install Docker Desktop for Windows: 3:08 Start the Docker Desktop: 4:32 WSL 2 Docker Desktop Settings: 5:37 Run Docker Containers in Ubuntu in WSL 2: 7:21 Testing Docker Containers: 9:44 Previous video: ua-cam.com/video/_fntjriRe48/v-deo.html
"Virtual Machine Platform" & "Windows Subsystem for Linux" were the only two pre-requisites for Docker to be functional on Windows 10 Home. "Windows Hypervisor Platform" was never a requirement, as I understand from the documentation specific for Docker on WSL2. I am currently running Docker on my Windows 10 Home laptop without the "Windows Hypervisor Platform". Thanks for the tutorial video, I was looking for pitfalls leading to Docker to stop functioning & WSL shell working erratically.
David you are so good ...please keep the good work up...also wold you mind making some more videos on docker with WSL2.. may be add kubernetes too :) if not asking too much
Thank you so much. Your video basically solved all my questions. So straightforward and easy to understand. You should go teach in Udemy and I will buy you course.
Excellent video David. You got a new subscriber. I followed the steps but got stuck in the Resources section of Docker Desktop. It says "You don't have any WSL 2 distro". But I installed Ubuntu 20.04 checked it was WSL 2 with power shell and ran some sample commands. The only difference in the process is that I installed Docker in my normal user and have to run it as an administrator to make it work. Thank you in advance.
1. you only need version 1903 or higher now 2. the features need to enable are Windows Subsystem for Linux and Virtual Machine Platform. not windows hypervisor platform (make sense, this is docker on wsl not docker on windows) 3. now dock will enable hyper-v itself during the install
Hey, David, really a great video! I hope your next video can introduce how to use nvidia-docker in WSL2. It would be really helpful for who need use Nvidia GPU in docker on Windows!
Thank you for the recommendation. Microsoft documentation: "Can I access the GPU in WSL 2? Are there plans to increase hardware support? In initial releases of WSL 2 hardware access support will be limited, e.g: you will be unable to access the GPU, serial or USB devices. However, adding better device support is high on our backlog, as this opens many more use cases for developers that wish to interact with these devices. In the meantime, you can always use WSL 1 which has serial port access. Please stay tuned to this blog and WSL team members on Twitter to stay informed about the latest features coming to insider builds and reach out to give us feedback on what devices you'd like to interact with!" docs.microsoft.com/en-us/windows/wsl/wsl2-faq
The Microsoft Windows 2004 Update is even FASTER than the previous version!! The slow ring version in Windows insider slowed it down before, but the stable version is even faster!! God I love those Microsoft developers all over the world (8th avenue NYC) who work in C++ & C and envy them a little bit too for their massive skills & knowledge of Win32 API + kernels. As for this, I look forward to watching this soon and applying this when I get some things done! It's going to be a lot easier/convenient when someone wants to run Terraform & Ansible & Docker locally, or learn Linux. I credit Satya Nadella for this after Steve Ballmer called monolithic kernel operating systems "Cancer"
Your videos are very informative and well put together. Thank you for these amazing tutorials. Could you make a tutorial on how to use cuda enabled nvidia-docker2 containers within WSL2?
7:18 Okay that's probably not what you want to see That's EXACTLY WHAT I WANTED to see.. couldn't figure out why Docker kept giving me "wsl distro error 0xfffffff" and I checked the version turns out mine showed v1 as default 🤦🤦 Thanks a lot David
Fantastic video. Thank you for helping to make this whole process more understandable. I was wondering if you would are planning to make (or have already made) a video explaining how to allow docker containers running within WSL to access files in the host system? e.g. having an instance of Plex/emby/jellyfin access the files I have stored on a local external drive. I have a feeling it has something to do with volumes and/or bind mounts but I am still all too new to this to know how to proceed. I have played around and tried some things but have been unsuccessful. I’d love some guidance. Thanks for all you do. I’m gonna keep an eye on this channel. Keep up the great work.
Hi, David! Sorry if you had mentioned it before. It seems that older versions of VMware and virtual box are incompatible with WSL 2. haven’t tested virtualbox yet but upgrading to VMware workstation 15.5.6 has fixed the issue.
There are issues running WSL 2 and VirtualBox or VMware - especially with nested virtualization. See here: docs.microsoft.com/en-us/windows/wsl/wsl2-faq and www.virtualbox.org/wiki/Changelog-6.0 and blogs.vmware.com/workstation/2020/01/vmware-workstation-tech-preview-20h1.html - I cover this here in my previous video: ua-cam.com/video/_fntjriRe48/v-deo.html
Maybe doing some labs on CCNP Encore! Currently, I am doing this certificate and struggling with ansible. I cannot run ansible playbook. If you can provide a lesson setting up ansible on this setup and run playbook, that would be awesome! Previously, i tried cloning ansible on Ubuntu (previous version) and tried to play it, there was no full support!
The explanation and presentation are clear but what's the usage of this nested virtualization? How can it be used for developing or testing purposes, if at all?
It was all well until 5:19. I don't have an option to start Ubuntu, so I guess there was some step missing? What do I need to install or run in order to have Ubuntu show up in my start menu?
Hello David sir, I want to learn from beginning , for example you explaining about routers , config of routers , protocol and networking. I'm following CCNA 200-301 series of yours . Please tell me. Which playlist I have to follow. Thank you.
Do I understand it correct that die normal Linux VMs, the hypervisor is not needed, but door docker it is? Because in the previous video, you said we don't need the hypervisor.
There are issues running WSL 2 and VirtualBox or VMware - especially with nested virtualization. See here: docs.microsoft.com/en-us/windows/wsl/wsl2-faq and www.virtualbox.org/wiki/Changelog-6.0 and blogs.vmware.com/workstation/2020/01/vmware-workstation-tech-preview-20h1.html - I cover this here in my previous video: ua-cam.com/video/_fntjriRe48/v-deo.html
That's awesome! but for local web dev, is using docker within VM slowing down the performance? I'm using docker to deploy php, nginx, mysql ...etc to launch Laravel app. What's your tips about using docker with the best performance for dev & production? Thanks David!
thakyou sir , cant wait to try , i have been looking on how to installa docker in windows home but could not find , and finally u cover it, btw will it work on windows home single language?
Even 2 years after release, and still more useful than paid tutorials/Courses! Thanks, @david!
This is what I was trying to understand for past 48 hrs... Thank you
it's like the movie inception lol.
Thanks David!
lol... agreed... how many levels are we going :)
@@davidbombal lets do 30 levels.
recursion
btw you can't go further more than 3. Cause you cannot run another Ubuntu inside a Ubuntu container running on docker.
Running a OS inside a container inside a OS inside Windows (another OS)
WTF lol. Love it. Thanks for this series David
lol... inception here we come :) Glad you enjoyed the video!
Not to forget he is recording all of these inside of a Mac.
Thank you for a very clear and concise explanation of the process from end to end. As somebody who is brand new to wsl2, docker and dev containers.....this was extremely straightforward.
"im running operating systems within operating systems within operating systems". Super cool :D Thank u so much!!
Amazing. I love it. A very educational tutorial as always David. How amazingly things you can do with today's technology and thanks for the knowledge sharing us usual. Cheers David
Thank you! Glad you enjoyed the video :)
Thank you. I was stuck for days until you showed that I needed to upgrade my windows version to with docker desktop.
Not sure if its his flawless explanations or his backdrop or his voice, got me hooked.
Hi David, @ 2.13 in the video , you mention about selecting 'Windows Hypervisor Platform'. Should that have been "Virtual Machine Platform" ? I saw this video immediately after your WSL2 : Getting Started video.
BTW - Thanks for making these videos - you make it easier to understand.
Yes I have the same doubt.
Just came across your channel David. You're method of explanation is absolutely unparalleled. I am a newb to the Linux world but my occupation requires I learn it. I look forward to see many more of your wonderful videos.
Finally a good explanation of how to do this! Everything worked out well in my Windows 10 Home laptop, with a 19044 build.
absolute madman running all these matroshka layers
Thanks a lot for the thorough tutorial. I got a permission denied at 7:45 and used "sudo" to fix it:
sudo docker run -d -p 80:80 docker/getting-started
Thank you for making this video because of you I am able to run docker in ubuntu. Lot of thanks
Why, oh why, would anyone give this video a thumbs-down? David's videos on WSL are some of the best on UA-cam. Great work. I tried WSL1 and did a little with it but after hearing about WSL2 I went back to my Linux box. Now, with WSL2 I am moving my docker containers from my Linux box to Windows--thanks to your help. Thank you, David.
Thanks Roger! Great feedback. Unfortunately haters will be haters :(
Awesome ................ Ur voice reminds me of the Biblical David. U have been gifted with a fantastic voice ....... Its dominating and judgemental.
I had an issue of running docker on WSL1. I have shed tears of blood doing all sorts of hacks.
I have seen both ur videos ............ WSL2 installation & setting up docker on WSL2. U made it appear soooooooooooo simple
Thr is another caveat in Windows Pro ............. The Virtualization needs to be enabled in Firmware(BIOS), else docker installation would hang on WinPro. I have faced it ..........
Hyper-V Requirements:
VM Monitor Mode Extensions: Yes
Virtualization Enabled In Firmware: Yes
Second Level Address Translation: Yes
Data Execution Prevention Available: Yes
Thanks a Ton David ................ God bless you , ur family & ur generations.
Very Nice, waited for 7 days to watch your youtube video.
Hope you enjoyed it! :)
Love from India
So much of thankful to you
Your student
Ayush
Thank you Ayush
Hi David, you just saved my life. Even StackOverflow didn't help.
This is my first comment on UA-cam
simply Awesome!!!!!!
So informative, my all confusion has gone now!
Note: I made a mistake in the video at 2:12 - prerequisites for WSL2 are: "Windows Subsystem for Linux" and "Virtual Machine Platform"
Menu:
Overview: 0:00
Prerequisites: 0:27
Download Docker Desktop for Windows: 2:39
Install Docker Desktop for Windows: 3:08
Start the Docker Desktop: 4:32
WSL 2 Docker Desktop Settings: 5:37
Run Docker Containers in Ubuntu in WSL 2: 7:21
Testing Docker Containers: 9:44
Previous video: ua-cam.com/video/_fntjriRe48/v-deo.html
"Virtual Machine Platform" & "Windows Subsystem for Linux" were the only two pre-requisites for Docker to be functional on Windows 10 Home.
"Windows Hypervisor Platform" was never a requirement, as I understand from the documentation specific for Docker on WSL2.
I am currently running Docker on my Windows 10 Home laptop without the "Windows Hypervisor Platform".
Thanks for the tutorial video, I was looking for pitfalls leading to Docker to stop functioning & WSL shell working erratically.
That's correct. I made a mistake in this video :( In my previous video I explained this correctly.
So is it possible run other hypervisor like Vmware in the same pc with wsl?
@@davidbombal Had been troubleshooting for the past week because the particular setup seems to reject turning Hypervisor on.
thank you again..!
My favourite channel in UA-cam..!❤️💥
Thank you so much 😀
Actually for me also. Thanks DB.
Simply amazing. Thanks for such great content David!
Thanks for sharing, Uncle David!
Welcome!
That's neat... like having a bunch of Light weight hypervisors. Thank you Sir 👍
That's exactly right Orley
@8:59 had me. I loved the running Ubuntu within Ubuntu within Docker within windows part lol. Inception Movie right there, time slowed down a bit.
Another great video here David! Superb content as always! Be interesting to see the new virtualization technologies from apple as well :)
Thank you James. Agreed - with Apple moving away from Intel CPUs, it's going to be interesting to see what happens :)
4 years later and still going strong.
David you are so good ...please keep the good work up...also wold you mind making some more videos on docker with WSL2.. may be add kubernetes too :) if not asking too much
Great suggestion!
Thanks David..very brief and clear
Thank you for the WSL2+Docker. Running a OS inside a container inside a OS inside Windows (like as Russian nesting doll )? So amazing !
Magnificent! Subscribed and liked! Worked exactly as you described on my Windows 10 Home computer. Much appreciated.
Thank you! Really happy to hear that it worked for you :)
U there first tutoral I looked that where a managed to get this to work under wsl very well explained
Thank you so much. Your video basically solved all my questions. So straightforward and easy to understand. You should go teach in Udemy and I will buy you course.
Thanks a lot David . i was struggling for long time .. your video helped me ..
Thanks David. The explanations were really clear!!
2:53 oh man, I hope I have enough storage space for that big boi
Thank David !! this was much needed ...
thats what i was looking from you m gonna try now
Glad the video was helpful Humayun!
Good day from Jamaica, I would like to say thanks for the video. Until now I was unable to start any development using the limited hardware.
Glad to hear that the video was helpful
Great video! It helped me to run it. Hypervision was not chcked and it was previously not connecting with my wsl :) thank you
Excellent video David. You got a new subscriber. I followed the steps but got stuck in the Resources section of Docker Desktop. It says "You don't have any WSL 2 distro". But I installed Ubuntu 20.04 checked it was WSL 2 with power shell and ran some sample commands. The only difference in the process is that I installed Docker in my normal user and have to run it as an administrator to make it work. Thank you in advance.
At 3:52 of video you said "Windows Home doesn't support Hyper-V", but why at 2:13 you said the Windows Hypervisor Platform is needed?
Nice! Wsl2 been waiting ages for it
Agreed. It's great to see how Microsoft are improving this.
So your using Ubuntu to run Docker which is also running Ubuntu to use the Ubuntu Bash! Cool!
1. you only need version 1903 or higher now
2. the features need to enable are Windows Subsystem for Linux and Virtual Machine Platform. not windows hypervisor platform (make sense, this is docker on wsl not docker on windows)
3. now dock will enable hyper-v itself during the install
I could get what you said about the OS levels but a draw can also help a lot.
hello sir a lot of love from india 💌💌
thanks for sharing such amazing content i realy loved it
Great video and explanation are clear! It would be 110% awesome if you explain the "OS inception" with a whiteboard ;)
Thank you for sharing a useful tip. Btw, I suggest you go for native Docker on Linux (without hypervisior)
Thank you, extremely helpful!
Your video was very helpful. Thank you!
Amazing. Very quick. Thanks so much!
Hey, David, really a great video! I hope your next video can introduce how to use nvidia-docker in WSL2. It would be really helpful for who need use Nvidia GPU in docker on Windows!
Thank you for the recommendation. Microsoft documentation: "Can I access the GPU in WSL 2? Are there plans to increase hardware support? In initial releases of WSL 2 hardware access support will be limited, e.g: you will be unable to access the GPU, serial or USB devices. However, adding better device support is high on our backlog, as this opens many more use cases for developers that wish to interact with these devices. In the meantime, you can always use WSL 1 which has serial port access. Please stay tuned to this blog and WSL team members on Twitter to stay informed about the latest features coming to insider builds and reach out to give us feedback on what devices you'd like to interact with!" docs.microsoft.com/en-us/windows/wsl/wsl2-faq
Great explanation video!👍
The Microsoft Windows 2004 Update is even FASTER than the previous version!! The slow ring version in Windows insider slowed it down before, but the stable version is even faster!! God I love those Microsoft developers all over the world (8th avenue NYC) who work in C++ & C and envy them a little bit too for their massive skills & knowledge of Win32 API + kernels. As for this, I look forward to watching this soon and applying this when I get some things done! It's going to be a lot easier/convenient when someone wants to run Terraform & Ansible & Docker locally, or learn Linux. I credit Satya Nadella for this after Steve Ballmer called monolithic kernel operating systems "Cancer"
Really nice to see how Microsoft have changed in recent years :)
very good explanation! keep forward!
Thank you so much david!
thank you teacher
You are welcome
Thank you David
Thank you for watching Michael
Thank you so much. Great content.
Amazing tutorial sir, it was really helpful
Nice now I need an admin to keep track of my admin stuff
Your videos are very informative and well put together. Thank you for these amazing tutorials. Could you make a tutorial on how to use cuda enabled nvidia-docker2 containers within WSL2?
7:18 Okay that's probably not what you want to see
That's EXACTLY WHAT I WANTED to see.. couldn't figure out why Docker kept giving me "wsl distro error 0xfffffff" and I checked the version turns out mine showed v1 as default 🤦🤦
Thanks a lot David
Fantastic video. Thank you for helping to make this whole process more understandable. I was wondering if you would are planning to make (or have already made) a video explaining how to allow docker containers running within WSL to access files in the host system? e.g. having an instance of Plex/emby/jellyfin access the files I have stored on a local external drive. I have a feeling it has something to do with volumes and/or bind mounts but I am still all too new to this to know how to proceed. I have played around and tried some things but have been unsuccessful. I’d love some guidance. Thanks for all you do. I’m gonna keep an eye on this channel. Keep up the great work.
up
Daniel Tolentino ?
great video and very helpful as always
Thank you! Glad you think so!
Great DAVid ! Thanks gonna try iy.
Thank you
tnx for good video , it can be great to have a video about what can we do whit docker and how can be useful for us.
Great suggestion!
Thanks for the video, David. It is quite useful as always. It would be great to know the use cases . Appreciate if you can make a video on it.. Thanks
Yes agree
Correction not windows hypervisor platform but virtual machine platform needs to be enabled in the windows feature
Good catch! I said that by mistake :(
Great video! Could you show us how to increase the memory docker uses for WSL2? On Hyper-V Backend they have a menu for it
Hi, David! Sorry if you had mentioned it before.
It seems that older versions of VMware and virtual box are incompatible with WSL 2.
haven’t tested virtualbox yet but upgrading to
VMware workstation 15.5.6 has fixed the issue.
There are issues running WSL 2 and VirtualBox or VMware - especially with nested virtualization. See here: docs.microsoft.com/en-us/windows/wsl/wsl2-faq and www.virtualbox.org/wiki/Changelog-6.0 and blogs.vmware.com/workstation/2020/01/vmware-workstation-tech-preview-20h1.html - I cover this here in my previous video: ua-cam.com/video/_fntjriRe48/v-deo.html
Greet Channel thanks David
Thank you!
Nice video David, as usual.
What is the difference between running "Windows Subsystem for Linux" natively on windows and through Docker Desktop?
You use the Docker Desktop app to enable Docker functionality with WSL 2.
Thanks David... Good information.
Thank you Patrick
Thanks David, I also made it to my laptop. It would be very good if you can share some essentials or capabilities of this setup!
Maybe doing some labs on CCNP Encore! Currently, I am doing this certificate and struggling with ansible. I cannot run ansible playbook. If you can provide a lesson setting up ansible on this setup and run playbook, that would be awesome!
Previously, i tried cloning ansible on Ubuntu (previous version) and tried to play it, there was no full support!
Awesome video!
The explanation and presentation are clear but what's the usage of this nested virtualization? How can it be used for developing or testing purposes, if at all?
Thanks that works!
Thank you for the video.
Thanks for watching!
It was all well until 5:19. I don't have an option to start Ubuntu, so I guess there was some step missing? What do I need to install or run in order to have Ubuntu show up in my start menu?
bro you're the best!
amazing video. just subscribed.
Thanks for your sharing 👍
You're welcome. Thank you for watching!
Hello David sir,
I want to learn from beginning , for example you explaining about routers , config of routers , protocol and networking. I'm following CCNA 200-301 series of yours . Please tell me. Which playlist I have to follow. Thank you.
thanks for the video
Great vid it helped me allot!
Thanks so much
You're welcome!
thanks ! it helped me
Do I understand it correct that die normal Linux VMs, the hypervisor is not needed, but door docker it is?
Because in the previous video, you said we don't need the hypervisor.
This is fucking amazing
I love technology
You're crazy good
Thanks David :)
Thank you for always supporting me William
@@davidbombal Like I said before pal, I see it the other way round :)
all features needed from the turn on/off options in Win breaks Virtualbox (I dont mean running both at the same time but individually).
There are issues running WSL 2 and VirtualBox or VMware - especially with nested virtualization. See here: docs.microsoft.com/en-us/windows/wsl/wsl2-faq and www.virtualbox.org/wiki/Changelog-6.0 and blogs.vmware.com/workstation/2020/01/vmware-workstation-tech-preview-20h1.html - I cover this here in my previous video: ua-cam.com/video/_fntjriRe48/v-deo.html
That's awesome! but for local web dev, is using docker within VM slowing down the performance? I'm using docker to deploy php, nginx, mysql ...etc to launch Laravel app.
What's your tips about using docker with the best performance for dev & production?
Thanks David!
Thank u so much 😍😍
thakyou sir , cant wait to try , i have been looking on how to installa docker in windows home but could not find , and finally u cover it, btw will it work on windows home single language?
You rock!
(BTW, did you see the movie Inception?)
oooops.... just noticed I'm not the first one with that comment. :)
Thanks! And that's ok :) I have seen the movie.