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" >> ~/.profile
exit - วิทยาศาสตร์และเทคโนโลยี
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
Kindly like and subscribe my channel 👍🏻
Great work! I was struggling to install docker since a very long time this helped thanks 👍
Please like and subscribe 👍🏻
This is awesome. Thank you very much. It was simple and straightforward solution!!
Kindly like and subscribe my channel 👍🏻
Works great! Thanks
Please like and subscribe 👍🏻
Thanks this fixed my issue "wsl --set-version Ubuntu.X-XX 2"
Please like and subscribe 👍🏻
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
Please like and subscribe 👍🏻
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.
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
Thank you
Thanks so mush for your precision in your tutorial. relly lovly Job !! Gob bless Your motivation.
You are so welcome! Kindly like and subscribe my channel 👍🏻
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
Thanks for your valuable suggestion.
Please like and subscribe 👍🏻
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
@@ishwarchincholkar i have the exact same problem did you solve it?
@@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
Thanks full !! ;)
Kindly like and subscribe my channel 👍🏻
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.
Kindly follow the steps as per video and correct the command >> … it will work after correction…
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
kindly check C:\ProgramData\docker
Please like and subscribe 👍🏻
@@technoflake97 can i use docker desktop in win10 for study without wsl/wsl2 ?
@@anonoise yes… you can try.
It would be recomendable to install it in alpine WSL from the microsoft store?
Yes you can use that
Please like and subscribe 👍🏻
The music paired with your accent makes following this tutorial extremely difficult!
Will keep in mind next time, sorry for the inconvenience.
Annoyingly loud unnecessary music. Can’t hear the apeaker. Waste.
Sorry for the inconvenience but content is good. Thanks for your feedback.
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
Try to reinstall ubuntu and docker.. and run wsl -update first