Docker Complete Setup on Windows (With WSL Ubuntu)

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

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

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

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

    • @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 8 месяцев назад

      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

  • @1stOfThaMonth
    @1stOfThaMonth 9 дней назад

    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

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

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

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

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

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

    This video saved me from another headache.

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

    Best Resource for this topic, straightforward, direct.

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

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

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

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

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

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

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

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

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

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

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

    I love your way in explaining those point smoothly :)

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

    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

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

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

    Thanks Sir. Very helpful. Short and simple

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

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

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

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

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

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

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

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

    Clear and straight forward, thanks man ✌

  • @lean_diaz
    @lean_diaz 4 месяца назад

    thank you so much, still working

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

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

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

    You are a champ💪💪

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

    Thank you so much! the best tutorial!

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

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

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

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

    This is truly a great video.

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

    you saved my day, thank you so much

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

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

    Quite informative and helpful.

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

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

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

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

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

    Very good. Thank you.

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

    very very nice tutorial

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

    You the best!

  • @user-nz2pu
    @user-nz2pu Год назад

    Thank you Man!

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

    Great video

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

    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

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

    Great tutorial, please try to make a video on React

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

    Thanks

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

    thanks man

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

    Could not find VS code in extensions.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    i didnt get this part 7:47

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

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

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

    grat job

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

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

    curl is now available on Windows 10 Command Line

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

    @zura do you do freelance or consulting work?

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

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

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

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

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

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

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

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

      Same issue. Showing try to convert wsl1 to wsl2

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

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

    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?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    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  8 месяцев назад

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

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

    how to change port number

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Try restartinng docker. And windows as well.

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

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

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

    After installing WSL 2 installation is incomplete dialog box is showing... and when press restart on dailog box it is not installing

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

      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

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

    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?

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

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

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

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

    My docket is not working…displaying error messages

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

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

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

    Had to run this command "wsl --set-version Ubuntu 2" to make Ubuntu appear in docker settings.

  • @derrickmugabwa9977
    @derrickmugabwa9977 3 месяца назад

    I forgot my wsl Ubuntu password. How do I recover it

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

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

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

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

    I am getting message as docker engine stopping

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