How To Install Docker on Windows? A Step-by-Step Guide

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys in this video I'm going to show you how you can download and install and use Docker on your windows 11 operating system so let's get started and let's see how we can do it so first of all we are going to look into the system requirements for installing docker so I'm going to put this link in the description of this video and you can just click on this link and come to this system requirements page for docker and here in the system requirements page you can see there are two options one is wsl2 and other is hyper-v and windows containers for wsl2 backend you should have Windows 1164-bit and the version of Windows 11 you require is home pro version 21 H2 or higher Enterprise or education version 21 H2 or higher you should also have enabled wsl2 feature on your windows 11 operating system and then you have these system requirements so you should have 64-bit processor you should have minimum 4GB system RAM and other requirements here WSL stands for Windows subsystem for Linux and I'm going to show you how you can check if it's enabled or not you should also have this hyper-v backend and you can also see the system requirements for that so once you are sure that you all met all the system requirements you can just go to the official Docker page just search for Docker on your favorite browser and the first link which will appear here will be from docker.com so I'm going to click on this link and first of all before even downloading the docker desktop on your windows 11 you need to sign up in this docker.com website so you should have an account in order to start working with Docker on your windows 11 operating system so you can just click on get started if you don't have any account if you already have account you can just sign in with your existing account if you don't have any account you can just click on get started and then here you can click on sign up and you should just provide the basic information for such signing up into the docker account which is a username email ID password and other things right so it's very simple just create a Docker account and once you have the docker account just go to the main page and you can directly see this download button here so I'm going to click on this download Docker desktop I already have a Docker account this file is around 625 megabyte at the time of making this video so just wait for the download to complete in a meanwhile I'm going to show you how you can check for WSL 2 or hyper-v if if they are enabled on your windows 11 operating system so you don't need to do much for that so just click on the search bar and then just search for turn Windows feature on or off and here you will be able to see this option turn Windows feature on or off so just click on this uh link and it's going to show you this kind of window and here you will be able to see uh all the features which are available or enabled on your windows 11 operating system so once you see this kind of window and you will see this kind of list in this window first of all you can see this hyper V option so you can just enable this and then when you scroll down a little you will also see a Windows subsystem for Linux so you can just enable that also so just check both these check boxes and then click on OK and it's going to search for required files and once that's done you might need to reboot your Windows operating system so I will suggest to just reboot your windows 11 operating system and then you can just continue with the installation so let me just restart my windows 11 operating system now once your Windows operating system restarts you can open a command prompt so just search for CMD and then open the command prompt and once command prompt opens you can write this command to check if WSL is installed on your system or not just write WSL and then you can either write for example hyphen hyphen status here and then press enter it's going to show you the status which is the default version for WSL which is enabled on your system and the other information if you want to update the WSL you can just write WSL update which is going to update the WSL on your Windows operating system when you give this status command and if it shows the version 1 instead of version 2 so default version is right now 2 in my case but if it shows version 1 that means WSL one is enabled and you need to set the version 2 as a default version in order to use wsl2 on your Windows operating system so for that the command is this one which is WSL hyphen hyphen set hyphen default hyphen version and if you want to set it to 1 which is the wsl1 version then write 1 here otherwise if you want to set it to 2 just write 2 here so let me just set it to 1 and we will check the status again and you can see it's version one and if you want to set it to 2 which in our case we require in order to set the WSL to version as the default then you need this command once again which is WSL hyphen hyphen set hyphen default hyphen version 2 and this is going to set the default version as wsl2 on your windows so let me go to the location where I have installed this executable file which is dot desktop installer I'm going to just click on this and let me minimize this window so here you will see this kind of window which says do you want to allow this app to make changes on your device I'm going to click on yes here and now you can see it says installing Docker desktop and it's initializing some packages and here you can see the configuration you see a used wsl2 instead of hyper-v recommended and it also says add shortcut to desktop I'm going to leave both check boxes as checked and then click on OK and now we just need to wait for some time until this process is complete so now the installation of Docker desktop is finished and you can see this message installation succeeded and here you must restart your windows to complete the installation I can click on close and restart which is going to restart my Windows operating system so now my windows 11 operating system has been restarted and now after few seconds of waiting it's going to show you this kind of window automatically you don't need to do anything you can just click on accept here and it's going to start the docker here right so you can see Docker is starting on my windows 11 operating system and after some time you will be able to see this kind of Docker desktop tool so now I can see Docker desktop is starting on my windows 11 operating system so it might take some time to start but we can already test some commands for Docker so you can just search for CMD and we can check the version or some images of Docker which are there so I'm going to write this first command docker version and then press enter and you can see it shows me the docker desktop version and also it shows me the docker client version here also I can list the docker images right now there are none because it's a new installation but let's check docker images and then press enter and you can see it shows nothing let me clear the screen and then let's search for some image so I'm going to just write docker search and then for example I want to search for MySQL images I can just write my SQL here and then press enter it's going to search all the related images related to mySQL and you can see it's showing me the most popular image so you can see the stars which the image gets and it's also showing if the image is official or not right so the top one here is the MySQL image it has 13 920 stars and it's an official MySQL Docker image which you can install so now you can even install these images and run these images on your windows 11 operating system let's see if Docker is already started you can see now Docker is already started on my windows 11 operating system and uh you can always check these guides you can install various images on your windows 11 operating system and you will be able to see all the running containers also in this Docker desktop without even writing some commands on the command prompts if you are the fan of this kind of GUI interface right now if Docker doesn't start for some reason it might be that your WSL 2 is not yet enabled so Docker desktop is going to give you this warning that WSL is not enabled and it's going to also show you some kind of link where you can go and install and enable wsl2 I'm also going to put this link in the description where you can see how you can install and enable wsl2 there are four steps you just need to follow these four steps first one is you just need to open the Powershell as an administrator so you can always open the Powershell as an administrator right click and then click on run as administrator here and then click on yes and then just give all these commands here so first command is this one copy this and paste it on your Powershell and run this Command right and then follow the next step check the requirements then once again just copy this command and paste it on your Powershell terminal and at the end you need to download this package so just click on this WSL Linux kernel update package and it's going to download this package on your Windows operating system it's a MSI file so you can click on it and just run this automatically and it's going to install this WSL package and at last you just need to set your WSL to as the to as your default version right and the command for that is so once you follow the procedure until the fifth step you're good to go right so if it doesn't give you any error until fifth step your Docker will start okay so if Docker doesn't start and if it says W SL2 is not set follow step one to five of this webpage which I'm going to put the link in the description and then your Docker will definitely start okay so I hope you've enjoyed this video and I will see you in the next video
Info
Channel: ProgrammingKnowledge2
Views: 57,374
Rating: undefined out of 5
Keywords: install docker on wsl2 without docker desktop, update docker desktop, how to use docker desktop in windows 10, install docker on windows youtube, how to download docker on windows 10, docker tutorial, docker tutorial windows, docker youtube
Id: XgRGI0Pw2mM
Channel Id: undefined
Length: 13min 17sec (797 seconds)
Published: Thu Apr 20 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.