Skip to content
Related Articles

Related Articles

Improve Article

How to Install Docker on Windows?

  • Last Updated : 28 Jul, 2021

Before understanding the concept of Docker, let’s first discuss the concept of Hypervisors. So in an IT Company, or any cooperate, there is a development team, a testing team, and an operation team for developing the application, testing it, and deploying it respectively. Now suppose the developers are working on a different OS, for example, let’s say macOS, and they used some dependencies or libraries as per the language they are using, so they just won’t hand the software to the testing team, but also the libraries, but now, the application didn’t run o the tester’s machine, but it worked on the developer’s machine, maybe because the tester’s machine has different OS features than the developer’s one, so now, devs have to send the OS, but that is not practically possible, as one can’t just copy the C drive and hand it over, that’s where the concept of Hypervisors comes into the picture, think of this as a virtual machine or Wim-ware, so you have the physical hardware, you host an OS on it, and the OS can now host another OS also called Guest OS, and this guest OS can be packed and send to the testing team, amazing isn’t it! 

But the problem here is, for every application, one needs a different OS, this will result in wastage of resources as multiple OS will be running. So for this problem, we have the concept of Containers, the difference between Hypervisors and containers is that we don’t need multiple OS for every application, multiple applications can share the same OS kernel, great isn’t it. So instead of installing HYPERVISOR, we will be installing DOCKER. 

Docker Installation and Setup:

Follow the below steps to install and configure Docker on Windows:



  • For installation of Docker, go to your favorite browser(chrome will be used here, but it can be done by using any browser). In the search bar, type Docker download. And click on the first link that appears.

  • After clicking the link, choose your OS, be it Windows, MAC, Linux for installation.

  • The download will start, based on your internet speed, it will take some time in doing so.

  • After installation, it will look something like this in Windows:

  • After clicking Ok the installation will start.

  • After installation, it will show something like below:

  • After installation, we need to restart our PC and install WSL 2, which stands for Windows Setup for LINUX. It is a compatibility layer for running Linux binary executables natively on Windows 10. Please follow the next few instructions carefully. After restarting, the following dialog box will appear, then click on the Stop Docker button there.

  • After clicking, we need to enable the Hyper-V, for that we will restart the PC and go to BIOS setup, Settings>Update and Security>Recovery>Advanced Setup>Device Configuration. After that, if the option Enable Turbo Boost on DC. is unmarked, mark it, after it, save and exit.

  • After then, in the last step, go to Control Panel> Turn Windows Features on and off. Then for activating Hyper-V, mark the Hyper-V and Windows Hypervisor Platform.

At this point, you have successfully installed and configured Docker on your Windows machine.

 

My Personal Notes arrow_drop_up
Recommended Articles
Page :