Install Docker on Windows (WSL) without Docker Desktop...Easy steps!!!

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ค. 2024
  • HOW TO INSTALL WSL AND RUN DOCKER IN UBUNTUN IN WINDOWS 10 PC. Get started learning Docker and Linux! It's even supported on Windows 10 home version. Docker running in Ubuntu... Install and Run Docker in WSL (Windows Subsystem for Linux for Windows 10/11) without Docker Desktop. WSL 2 uses virtual machine technology to allow you to run a real Linux kernel directly on Windows 10. This also allows you to run Docker within Ubuntu running on Windows 10.
    WSL update link- Go to this website wslstorestorage.blob.core.win... and install WSL Update
    Find the below commands to run docker....
    wsl -l -v
    wsl --set-version Ubuntu 2
    sudo apt-get update
    sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common libssl-dev libffi-dev git wget nano
    sudo groupadd docker
    sudo usermod -aG docker username
    Id username
    curl -fsSl download.docker.com/linux/ubu... | sudo apt-key add
    sudo add-apt-repository "deb [arch=amd64] download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    curl -s packages.cloud.google.com/apt... | sudo apt-key add
    echo "deb apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
    sudo apt-get update
    sudo apt-get upgrade -y
    sudo apt-get autoremove -y
    sudo apt-get install -y docker-ce containerd.io
    sudo apt-get install -y kubectl
    echo "sudo service docker start" &gt&gt ~/.profile
    exit
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 46

  • @Grace3x
    @Grace3x ปีที่แล้ว +1

    Thank you for this video, it worked for me. I experienced some errors but i figured a way out around it and now i have docker running on my WSL-Ubuntu 20.04. LTS

    • @technoflake97
      @technoflake97  ปีที่แล้ว

      Kindly like and subscribe my channel 👍🏻

  • @sakshisharma1547
    @sakshisharma1547 2 ปีที่แล้ว +4

    Great work! I was struggling to install docker since a very long time this helped thanks 👍

    • @technoflake97
      @technoflake97  2 ปีที่แล้ว +1

      Please like and subscribe 👍🏻

  • @rohitsatyam2935
    @rohitsatyam2935 ปีที่แล้ว

    This is awesome. Thank you very much. It was simple and straightforward solution!!

    • @technoflake97
      @technoflake97  ปีที่แล้ว

      Kindly like and subscribe my channel 👍🏻

  • @ravenheartyajaira9930
    @ravenheartyajaira9930 2 ปีที่แล้ว +1

    Works great! Thanks

    • @technoflake97
      @technoflake97  2 ปีที่แล้ว

      Please like and subscribe 👍🏻

  • @nodrog051
    @nodrog051 2 ปีที่แล้ว

    Thanks this fixed my issue "wsl --set-version Ubuntu.X-XX 2"

    • @technoflake97
      @technoflake97  2 ปีที่แล้ว

      Please like and subscribe 👍🏻

  • @niteshhebbare3339
    @niteshhebbare3339 2 ปีที่แล้ว +1

    I have been struggling last two days becoz of error while running docker hello-world. You are a life savior!
    Additional point I would want to mention incase if not able to switch to wsl2
    When we try to switch to wsl2 from wsl1 it would throw an error which says do not have access to logon
    => delete the current ubuntu version and restart it 2-3 times and then again download ubuntu and try installing wsl2 and again check if its the latest version
    => if it still wont work then uninstall the wsl1 and try installing wsl2

    • @technoflake97
      @technoflake97  2 ปีที่แล้ว

      Please like and subscribe 👍🏻

  • @nazmul.cse48
    @nazmul.cse48 2 ปีที่แล้ว +1

    Great Video. I have a request for you. If you share those commands via gist that will help us more. Some large string command gives ... . Have a good day.

  • @sebastiantkaczyk3664
    @sebastiantkaczyk3664 ปีที่แล้ว

    I would like to ask if the changes are only valid for the current Ubuntu?
    I am asking because after making the changes I had a problem, then I decided to run Rancher Desktop, and I couldn't get the application anymore because I have a bug on kubernetess:
    "Invalid DER: object is not integer"
    so after that, I removed everything, including the docker, ubuntu, etc.
    I installed ubuntu later docker with the desktop normally, and I still have a problem with kubernetess the same
    So my question is whether any of these changes introduced changes to the WSL? possibly how to undo them
    I would be really grateful for the answer because I have a huge problem with that

  • @roshni4429
    @roshni4429 ปีที่แล้ว

    Thank you

  • @saxdevweb1825
    @saxdevweb1825 ปีที่แล้ว

    Thanks so mush for your precision in your tutorial. relly lovly Job !! Gob bless Your motivation.

    • @technoflake97
      @technoflake97  ปีที่แล้ว

      You are so welcome! Kindly like and subscribe my channel 👍🏻

  • @dragomazic7748
    @dragomazic7748 2 ปีที่แล้ว +4

    Just to point out a few things
    A small suggestions for correcting the description:
    1) For links where "..." literally stays "..." if someone just copy command
    2) echo "sudo service docker start" >> ~/.profile, ">>" should be ">>"
    And if someone's deamon isn't automatically launched, the command is for that "sudo dockerd"
    Everything else is great and works. Thanks

    • @technoflake97
      @technoflake97  2 ปีที่แล้ว

      Thanks for your valuable suggestion.

    • @technoflake97
      @technoflake97  2 ปีที่แล้ว

      Please like and subscribe 👍🏻

    • @ishwarchincholkar
      @ishwarchincholkar ปีที่แล้ว

      Env: Win-10
      i5-3rdGen, 8GB
      After run docker run hello-world cmd getting error:
      docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
      failed to start daemon: Error initializing network controller: error obtaining controller instance: unable to add return rule in DOCKER-ISOLATION-STAGE-1 chain: (iptables failed: iptables --wait -A DOCKER-ISOLATION-STAGE-1 -j RETURN: iptables v1.8.7 (nf_tables): RULE_APPEND failed (No such file or directory): rule in chain DOCKER-ISOLATION-STAGE-1

    • @solus-leveling
      @solus-leveling ปีที่แล้ว

      @@ishwarchincholkar i have the exact same problem did you solve it?

    • @ishwarchincholkar
      @ishwarchincholkar ปีที่แล้ว +2

      @@solus-leveling
      Solution :
      sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
      sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
      sudo dockerd &
      Run these 3 cmd one by one, it may help you

  • @mosdev1663
    @mosdev1663 ปีที่แล้ว +1

    Thanks full !! ;)

    • @technoflake97
      @technoflake97  ปีที่แล้ว

      Kindly like and subscribe my channel 👍🏻

  • @117flood4
    @117flood4 ปีที่แล้ว

    Nothing working as expected after "echo "sudo service docker start" >> ~/.profile" ! command "wsl" in command prompt is doing nothing! Any help would be great. Thanks.

    • @technoflake97
      @technoflake97  ปีที่แล้ว

      Kindly follow the steps as per video and correct the command >> … it will work after correction…

  • @swethabsharma
    @swethabsharma 2 ปีที่แล้ว

    Thankyou for this video I was struggling to install docker. I am trying to find the location where the docker images are. I am not able to find it.Could you please help

    • @technoflake97
      @technoflake97  2 ปีที่แล้ว

      kindly check C:\ProgramData\docker

    • @technoflake97
      @technoflake97  2 ปีที่แล้ว

      Please like and subscribe 👍🏻

    • @anonoise
      @anonoise 2 ปีที่แล้ว

      @@technoflake97 can i use docker desktop in win10 for study without wsl/wsl2 ?

    • @technoflake97
      @technoflake97  2 ปีที่แล้ว

      @@anonoise yes… you can try.

  • @dalthonmamani4744
    @dalthonmamani4744 2 ปีที่แล้ว

    It would be recomendable to install it in alpine WSL from the microsoft store?

  • @alpachino468
    @alpachino468 11 หลายเดือนก่อน

    The music paired with your accent makes following this tutorial extremely difficult!

    • @technoflake97
      @technoflake97  11 หลายเดือนก่อน

      Will keep in mind next time, sorry for the inconvenience.

  • @LoneRanger.801
    @LoneRanger.801 ปีที่แล้ว +2

    Annoyingly loud unnecessary music. Can’t hear the apeaker. Waste.

    • @technoflake97
      @technoflake97  ปีที่แล้ว

      Sorry for the inconvenience but content is good. Thanks for your feedback.

  • @Headinthecl0uds
    @Headinthecl0uds ปีที่แล้ว

    What to do if you get this error message at the end... cannot connect to the docker daemon at unix ///var/run/docker.sock. is the docker daemon running

    • @technoflake97
      @technoflake97  ปีที่แล้ว

      Try to reinstall ubuntu and docker.. and run wsl -update first