Docker Complete Setup on Windows (With WSL Ubuntu)

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 184

  • @TheCodeholic
    @TheCodeholic  2 года назад +56

    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"

    • @peteralexandre6593
      @peteralexandre6593 Год назад

      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

    • @appstuff6565
      @appstuff6565 Год назад

      hey man thanks for this. I am having localhost 9091 error so i am trying this method if it works, with datastax studio.

    • @tinny77
      @tinny77 Год назад

      LOL 🤣

    • @maanisain
      @maanisain Год назад

      I also having same issue docker is not running local host showing no internet

    • @LL-cm1wz
      @LL-cm1wz 5 месяцев назад

      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

  • @meskisable
    @meskisable 2 года назад +11

    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.

    • @TheCodeholic
      @TheCodeholic  2 года назад +4

      Good tip. Here is link for more details on that.
      docs.microsoft.com/en-us/windows/wsl/wsl-config#configuration-setting-for-wslconfig

  • @sirwoofish4335
    @sirwoofish4335 Год назад +1

    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

  • @maosiyu1328
    @maosiyu1328 Год назад +4

    Such a clear and good demo video for Docker Desktop and WSL2. Thank you for making this video.

  • @youtindia
    @youtindia 2 года назад +6

    This is the best video on docker desktop and wsl. Short simple and to the point.
    Worked like a charm on Windows 11.

  • @jagdalemahesh9
    @jagdalemahesh9 Год назад +1

    Thanks for this video I am looking for the same thing…from last 1 month.😊😊

  • @luckyboy9339
    @luckyboy9339 2 года назад +4

    I would be happy to see more videos about docker. Thank you.

  • @suvinsuvi1197
    @suvinsuvi1197 Год назад +1

    while installing docker in command prompt it shows is not recognized as an internal or external command, operable program or batch file

  • @sushiiguess7403
    @sushiiguess7403 2 года назад +1

    This video saved me from another headache.

  • @kraiventezuka2619
    @kraiventezuka2619 Год назад +1

    Best Resource for this topic, straightforward, direct.

  • @mattharper9443
    @mattharper9443 Год назад +4

    Great tutorial, concise and to the point, exactly what I needed to get me up and running.

  • @TiagoLino18
    @TiagoLino18 2 года назад +1

    Thanks for this tutorial, now I can watch the Laravel Portfolio that you recently post it.

  • @ashraffouad
    @ashraffouad 2 года назад +1

    Many thanks for the video, I was searching why Docker requires WSL and how to integrate, your video is awesome :)

  • @Wegahata
    @Wegahata Год назад

    This tutorial is a lot for me! I learned many things for my daily activity as a system DevOps Expert!

  • @darshan.shirke
    @darshan.shirke 2 месяца назад

    Really good explanation of wsl and linux integration with Docker Desktop on windows

  • @zedler12
    @zedler12 2 года назад +11

    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

  • @TioJobs
    @TioJobs 2 года назад +1

    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!

    • @TheCodeholic
      @TheCodeholic  2 года назад +1

      Thank you my friend.

    • @TioJobs
      @TioJobs 2 года назад

      @@TheCodeholic 😍

  • @madaotee
    @madaotee 2 года назад +1

    can't thank you enough for this. I've struggling for so many nights

  • @Howto-ds7cx
    @Howto-ds7cx Год назад +1

    Thank you so much best informative video till now I have watched

  • @Aweheid
    @Aweheid Год назад

    I love your way in explaining those point smoothly :)

  • @jean-martinfernand8068
    @jean-martinfernand8068 Год назад +1

    Thanks Sir. Very helpful. Short and simple

  • @b4rt1j1
    @b4rt1j1 2 года назад +2

    Thank you so much for this tutorial! Saved me a lot of time!

  • @edu-flex
    @edu-flex 2 года назад +1

    Thank you very much, we all appreciate your consistency and commitment

  • @lean_diaz
    @lean_diaz 23 дня назад

    thank you so much, still working

  • @sibusisongwenya938
    @sibusisongwenya938 Год назад +1

    Clear and straight forward, thanks man ✌

  • @chizbreeze
    @chizbreeze Год назад +1

    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"

  • @syedbilal8537
    @syedbilal8537 Год назад

    i saw many videos related this content but this is absolutely amazing guidance (Y)

  • @manuhernz4431
    @manuhernz4431 Год назад

    I should've seen this tut before installing Ubuntu in windows and docker seperately. I hope I can consolidate both with this tut.

  • @raedghodhbane5569
    @raedghodhbane5569 2 года назад +1

    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 ?

    • @redabekka5940
      @redabekka5940 2 года назад

      the same problem , did you fix it ?

  • @charlesvallar8762
    @charlesvallar8762 2 года назад +1

    Thanks again for this video ! Helps a lot ! Wish you the best of luck ! 👍 🙏

  • @benjamincorrea8119
    @benjamincorrea8119 2 года назад +1

    Thank you so much! the best tutorial!

  • @brova52
    @brova52 Год назад

    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

  • @pramodm8077
    @pramodm8077 Год назад +1

    Cool , simple and Awesome , what I need is in this video, Thanks Bro , much appreciated

  • @sureshandem780
    @sureshandem780 Год назад

    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?

  • @RahilaEjaz-jn7cb
    @RahilaEjaz-jn7cb Год назад

    After installation on windows 10pro version 21H2 ,on application launch I get error" docker failed to initialize docker dekstop is shutting down

  • @salmareddy8810
    @salmareddy8810 Год назад

    i am getting error while starting the docker desktop is unable to detect a hypervisor

  • @abkwldusman5093
    @abkwldusman5093 Год назад

    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

  • @femitemitopebodunde737
    @femitemitopebodunde737 Год назад

    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.

  • @parthprem30488
    @parthprem30488 5 месяцев назад +1

    very very nice tutorial

  • @sameerbajaj8927
    @sameerbajaj8927 Год назад +1

    Quite informative and helpful.

  • @shyanneshan3365
    @shyanneshan3365 Год назад +1

    you saved my day, thank you so much

  • @ujjawalkumar2390
    @ujjawalkumar2390 2 года назад

    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...

  • @lahaale5840
    @lahaale5840 Год назад +1

    Nice video, but "Ubuntu" does not appear in my docker-desktop, I have tried reinstall docker-desktop, but it does not help.

    • @xaviball2911
      @xaviball2911 Год назад

      Same issue. Showing try to convert wsl1 to wsl2

  • @asherplotnik
    @asherplotnik Год назад

    i enabled virtualizion on the bios and hyper v on windows and still have error that docker desktop cant detect hyper v

  • @MaaikeAdrianne
    @MaaikeAdrianne Год назад

    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.

  • @michaelargentin6350
    @michaelargentin6350 Год назад

    Mine is just stuck on starting, I think it's looping by it I don't know what to do about it

  • @nilanjannandy2553
    @nilanjannandy2553 2 года назад +1

    This is truly a great video.

  • @luyu0628
    @luyu0628 Год назад

    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?

  • @sam-dblanca7976
    @sam-dblanca7976 Год назад

    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

  • @doodle_islive
    @doodle_islive 2 года назад

    i am getting an error : WSL integration with distro Ubuntu 20.04 unexpectedly stopped with exit code 1

  • @jelam07
    @jelam07 Год назад

    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

  • @michealdrinkwater9648
    @michealdrinkwater9648 11 месяцев назад +1

    You are a champ💪💪

  • @mr.webdesinger396
    @mr.webdesinger396 2 года назад

    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.

  • @sorcererstone3303
    @sorcererstone3303 Год назад

    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?

  • @kindalost1
    @kindalost1 2 года назад

    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)?

  • @CarstenBauer
    @CarstenBauer Месяц назад

    Could not find VS code in extensions.

  • @quimaoko
    @quimaoko 2 года назад

    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

  • @charlessuubi549
    @charlessuubi549 Год назад +1

    Thanks

  • @ingenieur
    @ingenieur 10 месяцев назад

    I start Docker Desktop and nothing happend. Do I need admin rights?

  • @mftrill
    @mftrill Год назад

    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?

  • @rebeccabucolo4993
    @rebeccabucolo4993 Год назад

    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!

    • @TheCodeholic
      @TheCodeholic  Год назад

      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

  • @LL-cm1wz
    @LL-cm1wz 5 месяцев назад

    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?
    ?

    • @TheCodeholic
      @TheCodeholic  5 месяцев назад

      Search in Google VS code download and download for your operating syatem.

  • @sia_ibk
    @sia_ibk 2 года назад

    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

  • @pnezerwa
    @pnezerwa Год назад

    Thanks!
    However, this "mailhog" and "meilisearch" gives headache. It's taking a lot time 🤦🏾‍♂️

  • @jameswong3388
    @jameswong3388 2 года назад

    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.

  • @rjclark730
    @rjclark730 11 месяцев назад

    I dont see ubuntu terminal in vs code, I installed wsl and docker extensions but I cannot get the terminal on code.

    • @TheCodeholic
      @TheCodeholic  11 месяцев назад

      Did you install Ubuntu inside wsl?

  • @emelieobumse3839
    @emelieobumse3839 Год назад

    i am unable to use the mkdir command unless i use the root user, please help

  • @user-nz2pu
    @user-nz2pu 11 месяцев назад

    Thank you Man!

  • @olittobee
    @olittobee Год назад

    My docket is not working…displaying error messages

  • @saadqayyum2148
    @saadqayyum2148 Год назад

    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?

    • @bilalkwider6467
      @bilalkwider6467 9 месяцев назад

      please , are you solve this problem ??

  • @marufmazumder8294
    @marufmazumder8294 Год назад

    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.

  • @def2easy942
    @def2easy942 2 года назад +1

    thanks man

  • @AthelstanEngland
    @AthelstanEngland Год назад

    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.

  • @muhdbasiirzulkifle5090
    @muhdbasiirzulkifle5090 2 года назад +1

    You the best!

  • @skeeterwyh
    @skeeterwyh Год назад

    New to docker. Why it stuck at “Docker is starting” and nothing happened? Does network problem cause this?

    • @TheCodeholic
      @TheCodeholic  Год назад

      Try restartinng docker. And windows as well.

  • @alittavarghesesrmoodledeve1299

    After installation iam getting error like this WSL 2 installation is incomplete.

    • @TheCodeholic
      @TheCodeholic  Год назад

      Check the pinned comment. Maybe it helps

  • @xaviball2911
    @xaviball2911 Год назад

    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.

    • @TheCodeholic
      @TheCodeholic  Год назад

      Hello Xaviball,
      Please check the pinned comment, you will find answer there.
      BTW. Xavi is one of my favorite football players of all time :)

  • @balthasar1867
    @balthasar1867 Год назад

    My docker engine is stuck in starting. I tried switching the daemon but it didn’t work. Any ideas ?

  • @crowncontrol3637
    @crowncontrol3637 10 месяцев назад

    would it be worth it to get rid of a layer and just use a Linux distro instead of windows and WSL?

    • @TheCodeholic
      @TheCodeholic  10 месяцев назад

      If you don't want anything else from windows, then go for linux.
      For daily coding I use linux

  • @Kolarian666
    @Kolarian666 Год назад +1

    grat job

  • @brandongarcia3292
    @brandongarcia3292 2 года назад

    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.

  • @topalek
    @topalek 2 года назад

    Зура, спасибо за видео. есть проблема. Устанавливаю докер, запускаю. процессы докера есть, но само приложение "докер" не запускается. Можешь помочь?

  • @mureeojo
    @mureeojo 2 года назад

    my docker refuses to start and i dont have ubuntu wsl option in vs code. help please

    • @TheCodeholic
      @TheCodeholic  2 года назад

      You probably don't have wsl installed properly or docker is not connected to WSL. Can you double check?

  • @rakinar2
    @rakinar2 2 года назад +1

    Great tutorial, please try to make a video on React

  • @josephdemars5400
    @josephdemars5400 Год назад +1

    Great video

  • @AnkitChaudharykrishna
    @AnkitChaudharykrishna 2 года назад

    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.

  • @jeniosk1097
    @jeniosk1097 Год назад

    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...

    • @TheCodeholic
      @TheCodeholic  Год назад +1

      Please check pinned comment.

    • @jeniosk1097
      @jeniosk1097 Год назад +1

      @@TheCodeholic It worked! Thank you!

    • @TheCodeholic
      @TheCodeholic  Год назад +1

      @Jeniosk Happy to know that. 👍 Would be great if you like and share the video.

    • @xaviball2911
      @xaviball2911 Год назад

      @@jeniosk1097 where is pinned comment

    • @jeniosk1097
      @jeniosk1097 Год назад +1

      @@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.

  • @canspank2836
    @canspank2836 2 года назад

    it just crashes over and over :-( at the 2. min mark in your video

  • @alittavarghesesrmoodledeve1299

    I couldn't see ubuntu under wsl integration

  • @pezhmanaslani9346
    @pezhmanaslani9346 2 года назад

    Thank you very much.
    You are great, continue with strength.
    Can You make a video And learn Yii2 rest Paginaton?

    • @TheCodeholic
      @TheCodeholic  2 года назад

      Thank you.
      Check my video on Yii2 REST API. I think it includes pagination as well.

  • @CodeSynergy
    @CodeSynergy Год назад

    curl is now available on Windows 10 Command Line

  • @pavelgrishin
    @pavelgrishin Год назад

    Let me decide whether I wanna smash that like button AFTER I watch this ok?

  • @samuorobo
    @samuorobo 2 года назад

    I’ve downloaded it but instead of docker is starting it’s stuck on docker is stopping

    • @burneam1
      @burneam1 2 года назад

      i have the same problem as this. Did you fix it ?

    • @dmytrk
      @dmytrk 2 года назад

      @@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

    • @dmytrk
      @dmytrk 2 года назад

      @@burneam1 This assumes you have hypervisorlauchtype auto in bcdedit

  • @Techylinda
    @Techylinda 2 года назад

    I did everything exactly as stated in the video, but still docker would not start 😭

    • @TheCodeholic
      @TheCodeholic  2 года назад

      Please check the Pinned comment as well.
      If it does not help. Can you provide what is the error?

  • @devanii
    @devanii 2 года назад

    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
      @TheCodeholic  2 года назад

      Do you have it running using docker?

    • @devanii
      @devanii 2 года назад

      @@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

    • @kareemkhalfalla8735
      @kareemkhalfalla8735 2 года назад

      @@devanii just put project folder inside the linux distribution file system not and then run it

  • @angelalisomona7088
    @angelalisomona7088 Год назад

    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
      @TheCodeholic  Год назад

      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?

    • @angelalisomona7088
      @angelalisomona7088 Год назад

      @@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
      @TheCodeholic  Год назад

      @@angelalisomona7088 I see. There is getting started container running. you have to stop it and then try.

    • @angelalisomona7088
      @angelalisomona7088 Год назад

      @@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?

    • @TheCodeholic
      @TheCodeholic  Год назад

      Please stop all containers and type localhost in browser. What do you see?

  • @mastanvali3783
    @mastanvali3783 2 года назад

    how to change port number

  • @mashapoguajay3322
    @mashapoguajay3322 10 дней назад

    Im getting error i left it

  • @jokenadrian
    @jokenadrian 2 года назад

    @zura do you do freelance or consulting work?

  • @blenthusiasts
    @blenthusiasts 10 месяцев назад +1

    i didnt get this part 7:47

    • @ghfkbcgvhvcdjaa682
      @ghfkbcgvhvcdjaa682 2 месяца назад

      same, for me it doesn’t have this option and it looks a bit different. Did you manage to solve it?