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
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
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.
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!
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
Hi! Amazing stuff! One Q though. I got WinSRV22 and WSL2 installed on it. I run Ubuntu on it, but can I just run an Ubuntu image without the need to run Ubuntu first? That's because I would like to just run a small web app inside a container rather that installing entire Ubuntu distrib inside Windows server. If I run docker load -i my-ubuntu-image.tar I got cannot load linux image on windows
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.
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"
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?
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)?
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.
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
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 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
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?
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
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.
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.
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'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?
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...
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? ?
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?
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.
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?
@@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
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
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
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
FANTASTIC! I tried installing docker via command and it would NOT work. This was a much better method. I was trying to get WebUI running! Thank you
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.
I would be happy to see more videos about docker. Thank you.
I will try.
This is the best video on docker desktop and wsl. Short simple and to the point.
Worked like a charm on Windows 11.
Agree.
This video saved me from another headache.
Best Resource for this topic, straightforward, direct.
Many thanks for the video, I was searching why Docker requires WSL and how to integrate, your video is awesome :)
Thanks for this video I am looking for the same thing…from last 1 month.😊😊
Thanks for this tutorial, now I can watch the Laravel Portfolio that you recently post it.
Great tutorial, concise and to the point, exactly what I needed to get me up and running.
This tutorial is a lot for me! I learned many things for my daily activity as a system DevOps Expert!
I love your way in explaining those point smoothly :)
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
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
Thanks Sir. Very helpful. Short and simple
Really good explanation of wsl and linux integration with Docker Desktop on windows
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 😍
Thank you very much, we all appreciate your consistency and commitment
I appreciate that!
Thank you so much for this tutorial! Saved me a lot of time!
Clear and straight forward, thanks man ✌
thank you so much, still working
i saw many videos related this content but this is absolutely amazing guidance (Y)
Glad to hear that! Thank you...
You are a champ💪💪
Thank you so much! the best tutorial!
Thanks again for this video ! Helps a lot ! Wish you the best of luck ! 👍 🙏
Thanks for your comment.
while installing docker in command prompt it shows is not recognized as an internal or external command, operable program or batch file
This is truly a great video.
Thanks a lot
you saved my day, thank you so much
Happy to hear that
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
Quite informative and helpful.
Cool , simple and Awesome , what I need is in this video, Thanks Bro , much appreciated
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.
Very good. Thank you.
very very nice tutorial
You the best!
Thank you Man!
Great video
Thank you
Hi! Amazing stuff!
One Q though. I got WinSRV22 and WSL2 installed on it. I run Ubuntu on it, but can I just run an Ubuntu image without the need to run Ubuntu first? That's because I would like to just run a small web app inside a container rather that installing entire Ubuntu distrib inside Windows server.
If I run docker load -i my-ubuntu-image.tar I got
cannot load linux image on windows
Great tutorial, please try to make a video on React
Thank you.
I will try.
Thanks
thanks man
Could not find VS code in extensions.
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!!
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?
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?
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)?
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.
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
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?
grat job
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?
curl is now available on Windows 10 Command Line
@zura do you do freelance or consulting work?
No, Sorry I don't do.
@@TheCodeholic thanks.
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.
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
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
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 ?
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
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 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?
i am getting error while starting the docker desktop is unable to detect a hypervisor
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 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
i enabled virtualizion on the bios and hyper v on windows and still have error that docker desktop cant detect hyper v
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 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.
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.
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'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?
i am unable to use the mkdir command unless i use the root user, please help
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.
Mine is just stuck on starting, I think it's looping by it I don't know what to do about it
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...
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.
how to change port number
My docker engine is stuck in starting. I tried switching the daemon but it didn’t work. Any ideas ?
Did you check pinned comment?
I start Docker Desktop and nothing happend. Do I need admin rights?
i am getting an error : WSL integration with distro Ubuntu 20.04 unexpectedly stopped with exit code 1
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
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?
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 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?
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.
Thanks!
However, this "mailhog" and "meilisearch" gives headache. It's taking a lot time 🤦🏾♂️
After installing WSL 2 installation is incomplete dialog box is showing... and when press restart on dailog box it is not installing
On dialog box you should see link.
1. Click on the link and download kernel update.
2. Install the kernel update and then click restart on dialog box
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 ??
Зура, спасибо за видео. есть проблема. Устанавливаю докер, запускаю. процессы докера есть, но само приложение "докер" не запускается. Можешь помочь?
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
My docket is not working…displaying error messages
Let me decide whether I wanna smash that like button AFTER I watch this ok?
Ok buddy
Did you decide?
Had to run this command "wsl --set-version Ubuntu 2" to make Ubuntu appear in docker settings.
I forgot my wsl Ubuntu password. How do I recover it
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
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.
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
I am getting message as docker engine stopping
Can you share the message?
Ya mee to getting the same error
Can you share the screen if possible?
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