Рет қаралды 5,004
Install docker desktop on Windows and run HTML website with Nginx
Recommended VPS Providers : bizanosa.com/v...
Bizanosa WordPress Support Service : bizanosa.com/w...
Bizanosa VPS Support service : bizanosa.com/w...
Captions
Welcome to this video. In this video, we are going to see how to install Docker desktop on Windows. Just search for Docker desktop.
Download for Windows.
Click there. If you click on that, you can start downloading. If you go back, you can also just click there. And then click on that button to download it. Docker desktop is also available for Linux so if you wanted to use it on Linux you can use it on Linux as well.
Let's wait for the download to finish and once it's done we are going to install it. I can just click there on open and this is going to start installing Docker desktop on Windows.
Here use WSL2. If you don't have WSL enabled you'll have to enable WSL first and if WSL is not working, especially WSL2 you're going to have to go into your BIOS, and then enable virtualization.
I know there are tutorials for that. You can check for that and just see how to enable wsl2 before continuing with this Docker installation because Docker recommends that you use wsl2 instead of hyper-v . We're just going to click OK.
All right after waiting everything is done. You can close and log out, so I'm just going to close. Let me log out then, and then we're going to come back, and then we're going to try to run a static application on docker.
After signing out and signing back in, let's open Docker desktop. If you don't see this screen, just close the bigger screen, there's usually a bigger screen that might show up.
Docker desktop is not running, Docker engine is stopped. Just minimize that screen so that you can see this and accept the terms. Yeah, this is a screen that may show up. If you see this screen, it's probably hiding the other one behind it.
You can see this. This is because virtualization is probably not enabled on my BIOS. If you have already enabled WSL you will experience this problem as well whereby you need to enable virtualization in the bios.
What you can do is go online and search for how to enable virtualization in your specific motherboard. AMD and Intel usually do it differently, so depending on your motherboard you need to Google and find out the exact steps you need to do on your bios to enable virtualization.
I've just enabled virtualization on my BIOS, let's open up Docker desktop. I've been waiting for a while, this seems to be stuck here, let's see if I can run any WSL app I think I have Debian.
So Debian seems to be running fine.
Debian on my WSL seems to be running, so what could be the problem ? Let me restart the computer one last time, and then we'll see how it goes after that.
After restarting the PC, it seems to be working okay. If it's still taking some time, just click there on settings, click on all these other things just to see if that's going to keep it moving.
Close that .now there you go, Docker desktop is installed. Just in brief, the things that are important; firstly, you need to enable WSL2. There are lots of tutorials for that. You can also find the tutorial on Microsoft documentation. And then depending on your bios, depending on your operating system motherboard you need to enable virtualization. Go to Google and search for your motherboard's how to enable virtualization .then you can start Docker again after restarting your PC. Now let's just do a test. I will come here, and I want to just download something from my GitHub here.
HTML. I just want to test this HTML. I'll click on it and I want to download it .let me just go back and download the entire thing. I'll come here under code and I want to download it as a zip. I don't want to pull.
Let me create a folder where we can try all this. I've created a folder on my desktop, I'm just going to drag in this one, and can we open it with Visual Studio Code? Yes we can.
If you don't know Docker there are lots of tutorials, but you can go to the docker documentation on the getting started part, you'll learn a lot from that area. The Docker documentation is pretty well written. If I come here, we have a Docker compose file. From this image it's going to create a container from that image, and it's going to build it from a Docker file and restart always, I don't really needed to restart always, so I'm just going to remove this. If you restart it always, it will always start with Docker and Docker automatically starts with the computer if you enable it.
Please consider supporting my channel:
paypal.me/rwahowa
www.buymeacoff...
***Support My Channel***
If this video was helpful to you, consider supporting my channel : paypal.me/rwahowa
I will greatly appreciate your support.
SOCIAL :
Facebook : bizanosa
Website : bizanosa.com