9 months later I needed this tutorial myself. Thanks to me for creating this (😀). However there are few things missing... 01:57 - I got screen "WSL2 installation is incomplete" with the link to download kernel update and two buttons "Restart" and "Cancel". I clicked on the link, downloaded, installed and clicked "Restart". After restarting Docker desktop I got an error with 3 button options. I clicked on "Reset to factory defaults". After this Docker desktop successfully started. 05:30 - Before installing Ubuntu make sure you set the default version of WSL to 2 by running "wsl --set-default-version 2". To convert your Ubuntu from version 1 to version 2 run "wsl --set-version Ubuntu 2"
thanks for this nice tutorial. I had the same problem but i had to restart my computer after "reset to factory defaults". Other than that everything went so well
I'm trying this now, and for the second note the first command worked, but the second command says There is no distribution with the supplied name. Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND edit: fix is not to use the 2, just use the -l -o to see Ubuntu is an option, and do that, not ubuntu 2
WSL and docker tip. Limit your RAM usage in WSL config(.wslconfig) because if you don't do it then sometimes docker can eat whole your system memory. Usually I limit it to 3gb.
my favorite type of tutorial, one that can seamlessly flow between pain points and explains what it is you are looking at as it progresses, giving end caps to auxiliary issues common sensically likely to be discovered once the main thing youre trying to do is complete. the explorer trick and how to open a project in phpstorm was something id braced myself to have an issue with, looking at other tuts and searching for individually, but none of them were as concise as what was shown in the video - nor as quick, or made as much sense. thankyou
I had docker working in my machine till a particular upgrade. After that it stopped working. it will never start. I had Virtualization enabled and i see that in BIOS and in the task manager as enabled. But Docker will not start and simply show as a"starting" and finally throw an error saying Virtualization is not enabled. I tried even Docker forum. but no help from anywhere. Any pointer will be a great help Codeholic
I had to put this video in the "O QUE ROLOU ESSA SEMANA?" ("WHAT HAPPENED THIS WEEK?" in Portuguese) on the TIO JOBS channel. Strong hug! good content!
On the Configuration option, it never listed "Install required Windows components for WSL 2" as an option. When I open the Docker desktop app, it's stuck on "Docker Desktop Starting"
I have an issue on 1.57 with running docker...it just doesn't end and then the app closes after some time. I have checked all prerequirisities but still nothing helped. It just doesn't want to start
after downloading the Docker Desktop and tried to open then i got this error "Docker Desktop - WSL drive missing , The Docker Desktop WSL data distro drive is missing" how to solve this?
please i deleted all the folder related to docker bc im getting error opening the app to re install it but after successful installation and sign in i cant find my containers and i wanted to back them up because a i got its back folder in my local storage please i need your help
I am getting this error while starting my docker desktop. An unexpected error was encountered while executing a WSL command. Common causes include access rights issues, which occur after waking the computer or not being connected to your domain/active directory.
cannot activate the 'docker' extension because it depends on an unknown 'vs code.docker' extension" This error gets pops up when I installed the docker extension in vs code .And the extension is not working at all in vs code .how to solve the error pls reply...
When installing ubuntu and setting it to wsl version 2, I had the error "There are no more endpoints available from the endpoint mapper." To solve: go in windows search bar to "services": find Host Service Network and turn it on.
quick question. if the Ubuntu sits on top of WSL2 which sits on top of Windows 11, what is the advantages or purpose of using docker to integrate the Ubuntu, WSL, and IDE together?
I am a newbie & have an off the tangent but stumbling blocks question. Question is more about hardware than the operating environment described in this video. I am trying to build an open source project. In the compose file for this project, there is such an environment setup. volumes: - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro There is no such thing as /etc library(directory) in Windows. This is a typical Linux setting. I can run this project but the time display is GMT not my local time. AKA, the builds ignores the local time and time zone on my windows host because it cannot find the above “etc” directory. I am looking at whether WSL Ubuntu can solve this problem (aka whether I can build this docker project in Ubuntu in Windows). My current setup is WSL1 (version 1) but I want to change it to WSL2. As a side note: from the forum of that project, I gather 99.9% of the developers there are in the Linux world. I am the odd man out :( The hardware question: Alternatively, I reconfigure my laptop into dual boot. One for Windows10pro, one for Ubuntu. And continue my development in Ubuntu OS environment. This seemed illogical and very heavy handed. What should I do? Dual boot route or VM (using WSL2) route? Any advice from anyone?
Question: what are down sides of building the image directly on windows (assuming i can still use the same dockerfile - and save the hassle of maintaing two)?
Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x8000000d Error: 0x8000000d An illegal state change was requested. Press any key to continue... Please i get this error when trying to run Ubuntu for the first time
i'm having issues. seems like i just can't get docker desktop to start. i have virtualization enabled, also downloaded the kernel update for wsl2, and I've even enabled Hypervisor. not sure what's going on?
Hi I’m trying to let Docker Desktop work in my Windows 10 and for every small step there is an error. I really need to let it work, because I need it for work. Can someone please help me? I would be so grateful!
Did you follow the steps exactly as shown? Did you check pinned comment as well? Do that if you have not done. If you did that, but still not working, can you search for the error text in google.or provide screenshot of error
Trying to follow this, at 7 min you say you're using "vs code", but when I type in that command code node/, I get "Command 'code' not found, but can be installed with: sudo snap install code". I'm guessing you already have something else installed for this to work but didn't know it. Can you direct me what I need to get here? ?
I am currently following a SQL tutorial where the tutor installed docker with WSL2 and docker-compose.yml. I have some issues with opening docker-compose in cmd
Hi @The Codeholic, just want to know how you can add setup existing laravel project on Docker, cuz I am windows and just started to learn Redis and it seems like it's not supported on windows, so I decided to start using docker.
Even after enabling Ubuntu from Resources section of Docker Desktop's settings, I am still receiving the error that docker command could not be found on this WSL 2 distro. What could be wrong?
An unexpected error was encountered while executing a WSL command. Common causes include access rights issues, which occur after waking the computer or not being connected to your domain/active directory.
At 6:22 you jumped out of the Ubuntu window... I typed EXIT to do the same. But then how do you get back in i.e. at 6:35? Tried WSL --u myusername but get errors "Processing fstab with mount -a failed" Great video up until that point.
In wsl integration I'm getting a message " you don't have wsl 2 distro. Plz convert wsl1 distro to wsl2 or install a new distro. " I'm new to docker so i don't know exactly what to do.
when i run any command i get this error : error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Get "%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/json": open //./pipe/docker_engine: The system cannot find the file specified. i have reinstalled this so many times, only recently i am getting this issue.
When I go to settings in Docker Desktop I get the following message "You don't have any WSL 2 distro. Please convert a WSL 1 distro to WSL 2, or install a new distro and it will appear here." Any ideas? Why does this have to be so damn complicated...
@@burneam1 uninstall Docker desktop, start docker desktop installer as admin, wait till installation end. Close installer. Restart your PC. Start docker desktop as admin. And you are done
Very good vid…can you have a video about slow docker..my php apache is very slow..i think it is something with the sessions but not sure…i dont have a solution yet
@@TheCodeholic yes iam new to docker..i saw a lot of tuts and finally have docker up and running with my php project .. but some section it loads 20 seconds or more…i think it has to do with sessions but its vague.. on production it is fast or on wamp
New to docker, thanks for the tutorial worked great. I noticed in your video at 09:34, your sail-8.1/app running port is only 80 which makes your localhost in browser command work for laravel. My docker shows ports 5173,80 on sail-8.1/app. How can I specify(set) the container port as only 80 so that the localhost command in the browser works same as in the tutorial?
@@TheCodeholic Docker destktop backend.exe is running on it. Then when I type localhost:80 it shows docker/getting started instead of laravel landing page.
@@TheCodeholic Stopped the container. Deleted cache from chroome and then laravel page loaded. However the page brought a /var/www/html permission denied error, so added chmod 777 rights, and now am getting 'ubuntu apache2 default page'. What must I do to see the laravel landing page instead now?
9 months later I needed this tutorial myself. Thanks to me for creating this (😀).
However there are few things missing...
01:57 - I got screen "WSL2 installation is incomplete" with the link to download kernel update and two buttons "Restart" and "Cancel". I clicked on the link, downloaded, installed and clicked "Restart". After restarting Docker desktop I got an error with 3 button options. I clicked on "Reset to factory defaults". After this Docker desktop successfully started.
05:30 - Before installing Ubuntu make sure you set the default version of WSL to 2 by running "wsl --set-default-version 2". To convert your Ubuntu from version 1 to version 2 run "wsl --set-version Ubuntu 2"
thanks for this nice tutorial. I had the same problem but i had to restart my computer after "reset to factory defaults". Other than that everything went so well
hey man thanks for this. I am having localhost 9091 error so i am trying this method if it works, with datastax studio.
LOL 🤣
I also having same issue docker is not running local host showing no internet
I'm trying this now, and for the second note the first command worked, but the second command says
There is no distribution with the supplied name.
Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND
edit: fix is not to use the 2, just use the -l -o to see Ubuntu is an option, and do that, not ubuntu 2
WSL and docker tip. Limit your RAM usage in WSL config(.wslconfig) because if you don't do it then sometimes docker can eat whole your system memory. Usually I limit it to 3gb.
Good tip. Here is link for more details on that.
docs.microsoft.com/en-us/windows/wsl/wsl-config#configuration-setting-for-wslconfig
my favorite type of tutorial, one that can seamlessly flow between pain points and explains what it is you are looking at as it progresses, giving end caps to auxiliary issues common sensically likely to be discovered once the main thing youre trying to do is complete. the explorer trick and how to open a project in phpstorm was something id braced myself to have an issue with, looking at other tuts and searching for individually, but none of them were as concise as what was shown in the video - nor as quick, or made as much sense. thankyou
Such a clear and good demo video for Docker Desktop and WSL2. Thank you for making this video.
This is the best video on docker desktop and wsl. Short simple and to the point.
Worked like a charm on Windows 11.
Agree.
Thanks for this video I am looking for the same thing…from last 1 month.😊😊
I would be happy to see more videos about docker. Thank you.
I will try.
while installing docker in command prompt it shows is not recognized as an internal or external command, operable program or batch file
This video saved me from another headache.
Best Resource for this topic, straightforward, direct.
Great tutorial, concise and to the point, exactly what I needed to get me up and running.
Thanks for this tutorial, now I can watch the Laravel Portfolio that you recently post it.
Many thanks for the video, I was searching why Docker requires WSL and how to integrate, your video is awesome :)
This tutorial is a lot for me! I learned many things for my daily activity as a system DevOps Expert!
Really good explanation of wsl and linux integration with Docker Desktop on windows
I had docker working in my machine till a particular upgrade. After that it stopped working. it will never start. I had Virtualization enabled and i see that in BIOS and in the task manager as enabled. But Docker will not start and simply show as a"starting" and finally throw an error saying Virtualization is not enabled. I tried even Docker forum. but no help from anywhere. Any pointer will be a great help Codeholic
Aaaany minute now
I had to put this video in the "O QUE ROLOU ESSA SEMANA?" ("WHAT HAPPENED THIS WEEK?" in Portuguese) on the TIO JOBS channel. Strong hug! good content!
Thank you my friend.
@@TheCodeholic 😍
can't thank you enough for this. I've struggling for so many nights
Really happy to read this. 🙏
Thank you so much best informative video till now I have watched
I love your way in explaining those point smoothly :)
Thanks Sir. Very helpful. Short and simple
Thank you so much for this tutorial! Saved me a lot of time!
Thank you very much, we all appreciate your consistency and commitment
I appreciate that!
thank you so much, still working
Clear and straight forward, thanks man ✌
On the Configuration option, it never listed "Install required Windows components for WSL 2" as an option. When I open the Docker desktop app, it's stuck on "Docker Desktop Starting"
Did you check the pinned comment?
i saw many videos related this content but this is absolutely amazing guidance (Y)
Glad to hear that! Thank you...
I should've seen this tut before installing Ubuntu in windows and docker seperately. I hope I can consolidate both with this tut.
I have an issue with docker when i accept terms i habe this problem : Docker desktop stopping. Does anyone know how to fix it please ?
the same problem , did you fix it ?
Thanks again for this video ! Helps a lot ! Wish you the best of luck ! 👍 🙏
Thanks for your comment.
Thank you so much! the best tutorial!
I have an issue on 1.57 with running docker...it just doesn't end and then the app closes after some time. I have checked all prerequirisities but still nothing helped. It just doesn't want to start
Cool , simple and Awesome , what I need is in this video, Thanks Bro , much appreciated
Thank you
after downloading the Docker Desktop and tried to open then i got this error "Docker Desktop - WSL drive missing , The Docker Desktop WSL data distro drive is missing" how to solve this?
After installation on windows 10pro version 21H2 ,on application launch I get error" docker failed to initialize docker dekstop is shutting down
i am getting error while starting the docker desktop is unable to detect a hypervisor
please i deleted all the folder related to docker bc im getting error opening the app to re install it but after successful installation and sign in i cant find my containers and i wanted to back them up because a i got its back folder in my local storage please i need your help
I am getting this error while starting my docker desktop. An unexpected error was encountered while executing a WSL command. Common causes include access rights issues, which occur after waking the computer or not being connected to your domain/active directory.
very very nice tutorial
Quite informative and helpful.
you saved my day, thank you so much
Happy to hear that
cannot activate the 'docker' extension because it depends on an unknown 'vs code.docker' extension"
This error gets pops up when I installed the docker extension in vs code .And the extension is not working at all in vs code .how to solve the error pls reply...
Nice video, but "Ubuntu" does not appear in my docker-desktop, I have tried reinstall docker-desktop, but it does not help.
Same issue. Showing try to convert wsl1 to wsl2
i enabled virtualizion on the bios and hyper v on windows and still have error that docker desktop cant detect hyper v
When installing ubuntu and setting it to wsl version 2, I had the error "There are no more endpoints available from the endpoint mapper." To solve: go in windows search bar to "services": find Host Service Network and turn it on.
Mine is just stuck on starting, I think it's looping by it I don't know what to do about it
This is truly a great video.
Thanks a lot
quick question. if the Ubuntu sits on top of WSL2 which sits on top of Windows 11, what is the advantages or purpose of using docker to integrate the Ubuntu, WSL, and IDE together?
hi. how do you reenter the ubuntu? I had to restart the pc. I don't know how to acess the ubuntu from the powershell
i am getting an error : WSL integration with distro Ubuntu 20.04 unexpectedly stopped with exit code 1
I had an error when installing Docker Desktop using WSL 2 but no error when I unchecked the case and use Hyper-V instead hope it’ll help you guys
You are a champ💪💪
Docker Desktop stopping...
i enabeld virtulation
my system info:Windows 10 Pro 21H2 19044.1947
how i can solve this problem plz help me tnks.
I am a newbie & have an off the tangent but stumbling blocks question.
Question is more about hardware than the operating environment described in this video.
I am trying to build an open source project. In the compose file for this project, there is such an environment setup.
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
There is no such thing as /etc library(directory) in Windows. This is a typical Linux setting.
I can run this project but the time display is GMT not my local time. AKA, the builds ignores the local time and time zone on my windows host because it cannot find the above “etc” directory.
I am looking at whether WSL Ubuntu can solve this problem (aka whether I can build this docker project in Ubuntu in Windows). My current setup is WSL1 (version 1) but I want to change it to WSL2.
As a side note: from the forum of that project, I gather 99.9% of the developers there are in the Linux world. I am the odd man out :(
The hardware question: Alternatively, I reconfigure my laptop into dual boot. One for Windows10pro, one for Ubuntu. And continue my development in Ubuntu OS environment.
This seemed illogical and very heavy handed.
What should I do?
Dual boot route or VM (using WSL2) route?
Any advice from anyone?
Question: what are down sides of building the image directly on windows (assuming i can still use the same dockerfile - and save the hassle of maintaing two)?
Could not find VS code in extensions.
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8000000d
Error: 0x8000000d An illegal state change was requested.
Press any key to continue... Please i get this error when trying to run Ubuntu for the first time
Thanks
I start Docker Desktop and nothing happend. Do I need admin rights?
i'm having issues. seems like i just can't get docker desktop to start.
i have virtualization enabled, also downloaded the kernel update for wsl2, and I've even enabled Hypervisor.
not sure what's going on?
Do you get any particular error?
Hi I’m trying to let Docker Desktop work in my Windows 10 and for every small step there is an error. I really need to let it work, because I need it for work. Can someone please help me? I would be so grateful!
Did you follow the steps exactly as shown? Did you check pinned comment as well? Do that if you have not done. If you did that, but still not working, can you search for the error text in google.or provide screenshot of error
Trying to follow this, at 7 min you say you're using "vs code", but when I type in that command code node/, I get "Command 'code' not found, but can be installed with:
sudo snap install code". I'm guessing you already have something else installed for this to work but didn't know it. Can you direct me what I need to get here?
?
Search in Google VS code download and download for your operating syatem.
I am currently following a SQL tutorial where the tutor installed docker with WSL2 and docker-compose.yml. I have some issues with opening docker-compose in cmd
Thanks!
However, this "mailhog" and "meilisearch" gives headache. It's taking a lot time 🤦🏾♂️
Hi @The Codeholic, just want to know how you can add setup existing laravel project on Docker, cuz I am windows and just started to learn Redis and it seems like it's not supported on windows, so I decided to start using docker.
I dont see ubuntu terminal in vs code, I installed wsl and docker extensions but I cannot get the terminal on code.
Did you install Ubuntu inside wsl?
i am unable to use the mkdir command unless i use the root user, please help
Thank you Man!
My docket is not working…displaying error messages
Even after enabling Ubuntu from Resources section of Docker Desktop's settings, I am still receiving the error that docker command could not be found on this WSL 2 distro. What could be wrong?
please , are you solve this problem ??
An unexpected error was encountered while executing a WSL command. Common causes include access rights issues, which occur after waking the computer or not being connected to your domain/active directory.
thanks man
At 6:22 you jumped out of the Ubuntu window... I typed EXIT to do the same. But then how do you get back in i.e. at 6:35? Tried WSL --u myusername but get errors "Processing fstab with mount -a failed" Great video up until that point.
Answer: Type UBUNTU in the powershell window!!
You the best!
New to docker. Why it stuck at “Docker is starting” and nothing happened? Does network problem cause this?
Try restartinng docker. And windows as well.
After installation iam getting error like this WSL 2 installation is incomplete.
Check the pinned comment. Maybe it helps
In wsl integration I'm getting a message " you don't have wsl 2 distro. Plz convert wsl1 distro to wsl2 or install a new distro. " I'm new to docker so i don't know exactly what to do.
Hello Xaviball,
Please check the pinned comment, you will find answer there.
BTW. Xavi is one of my favorite football players of all time :)
My docker engine is stuck in starting. I tried switching the daemon but it didn’t work. Any ideas ?
Did you check pinned comment?
would it be worth it to get rid of a layer and just use a Linux distro instead of windows and WSL?
If you don't want anything else from windows, then go for linux.
For daily coding I use linux
grat job
can you help me integrate wsl Ubuntu with docker. when i get to cat .bashrc file i get: no such file or directory. i have windows 11.
i cant open node folder
Зура, спасибо за видео. есть проблема. Устанавливаю докер, запускаю. процессы докера есть, но само приложение "докер" не запускается. Можешь помочь?
my docker refuses to start and i dont have ubuntu wsl option in vs code. help please
You probably don't have wsl installed properly or docker is not connected to WSL. Can you double check?
Great tutorial, please try to make a video on React
Thank you.
I will try.
Great video
Thank you
when i run any command i get this error : error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Get "%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/json": open //./pipe/docker_engine: The system cannot find the file specified.
i have reinstalled this so many times, only recently i am getting this issue.
When I go to settings in Docker Desktop I get the following message "You don't have any WSL 2 distro. Please convert a WSL 1 distro to WSL 2, or install a new distro and it will appear here." Any ideas? Why does this have to be so damn complicated...
Please check pinned comment.
@@TheCodeholic It worked! Thank you!
@Jeniosk Happy to know that. 👍 Would be great if you like and share the video.
@@jeniosk1097 where is pinned comment
@@xaviball2911 it's not pinned. It's just a normal comment by him in the comment section so you'll have to look for his comment.
it just crashes over and over :-( at the 2. min mark in your video
I couldn't see ubuntu under wsl integration
Thank you very much.
You are great, continue with strength.
Can You make a video And learn Yii2 rest Paginaton?
Thank you.
Check my video on Yii2 REST API. I think it includes pagination as well.
curl is now available on Windows 10 Command Line
Let me decide whether I wanna smash that like button AFTER I watch this ok?
Ok buddy
Did you decide?
I’ve downloaded it but instead of docker is starting it’s stuck on docker is stopping
i have the same problem as this. Did you fix it ?
@@burneam1 uninstall Docker desktop, start docker desktop installer as admin, wait till installation end. Close installer. Restart your PC. Start docker desktop as admin. And you are done
@@burneam1 This assumes you have hypervisorlauchtype auto in bcdedit
I did everything exactly as stated in the video, but still docker would not start 😭
Please check the Pinned comment as well.
If it does not help. Can you provide what is the error?
Very good vid…can you have a video about slow docker..my php apache is very slow..i think it is something with the sessions but not sure…i dont have a solution yet
Do you have it running using docker?
@@TheCodeholic yes iam new to docker..i saw a lot of tuts and finally have docker up and running with my php project .. but some section it loads 20 seconds or more…i think it has to do with sessions but its vague.. on production it is fast or on wamp
@@devanii just put project folder inside the linux distribution file system not and then run it
New to docker, thanks for the tutorial worked great. I noticed in your video at 09:34, your sail-8.1/app running port is only 80 which makes your localhost in browser command work for laravel. My docker shows ports 5173,80 on sail-8.1/app. How can I specify(set) the container port as only 80 so that the localhost command in the browser works same as in the tutorial?
You're welcome. Did you type localhost in browser and it does not work?
Can you check if you have something else running on port 80?
@@TheCodeholic Docker destktop backend.exe is running on it. Then when I type localhost:80 it shows docker/getting started instead of laravel landing page.
@@angelalisomona7088 I see. There is getting started container running. you have to stop it and then try.
@@TheCodeholic Stopped the container. Deleted cache from chroome and then laravel page loaded. However the page brought a /var/www/html permission denied error, so added chmod 777 rights, and now am getting 'ubuntu apache2 default page'. What must I do to see the laravel landing page instead now?
Please stop all containers and type localhost in browser. What do you see?
how to change port number
Im getting error i left it
@zura do you do freelance or consulting work?
No, Sorry I don't do.
@@TheCodeholic thanks.
i didnt get this part 7:47
same, for me it doesn’t have this option and it looks a bit different. Did you manage to solve it?