For a while now in an endeavor to skill up on Azure Devops , I have been playing around with Docker and I went through a lot of up’s and down’s while I was in the process of getting started.
In the absence of proper material of where exactly to get started, I thought of coming up with blogs (as I keep learning it , just keep sharing it ) so that any one trying to learn from scratch can be benefited.
Intent of the blog post –
The basic intend behind the blog is to help beginners with a step to step approach to be followed for installing Docker for Windows
- A prior basic information of Docker will help .
- Windows 10 , 64 bit machine
- If you are a beginner and trying to follow this blog and try it out in real time , I would suggest try it out in Test or Development environment .
- It requires certain changes in the BIOS settings , be super cautious about it .
- Follow the blog very carefully.
Let’s begin then !!
Now when I say we are going to install Docker for Windows , we will still be running the docker on Linux . You may scratch you head on this and say that it doesn’t make any sense .
It will !! Let me take you to some pictorial data materials for this and you will get clearly what we have tried to do here .
As you can see in the picture above , the machine(client) is still running with Windows OS but we will be enabling the Hyper-V feature in this client which will be running a Linux VM .
The Docker that we will install will actually be running over this Linux VM (MobyLinux) .
That brings us to the first step of Installation , Turning on the Virtualization feature in our Windows machine.
Step 1 – Turning On the Virtualization feature on Windows Machine
- Navigate to the Control Panel , Program features , Turn windows feature On and Off.
- Locate the Hyper V feature from the list of options and tick it .
- It will start installing the feature on your machine . When this gets completed you might want to perform a restart and this is essential (normally needed after you install any feature in Windows) .
Step 2 – Resolving the error
When the restart operation is done , you may something like this on your screen stating that the Hyper V is not running.
But you just installed that feature right !! Yes, but did you activate it .
No need to panic . Let’s activate this as well .
The solution here is to navigate to your Bios settings and enable the hardware virtualization assists feature .
As already cautioned be super cautious here .
These are the BIOS settings that you are changing on your machine . It’s like playing with the Wires in an active bomb.
There is only one setting that needs to be changed and you are going to do exactly that . Nothing else .
There is a nice step by step blog to be followed for this . I have personally verified this and so sharing this blog .
I don’t want a lengthy blog so what I am going to do is just paste the link over here , please follow it.
The major part of your work is done here .
Step 3 – Downloading/Installing the set up
- Navigate to the www.docker.com
- Click on “Get Docker“.
- Scroll down and you will see a nice list of Docker products for different Operating systems .
- Choose the “Windows“option.
- It will download the set up file for you . Run this setup.
- Accept the License agreement and click on Install
- You will see the screen that says that the setup has been installed. It’s all going smoothly right !! Easy peasy , basic installation steps.
Step 4 – Verification
- Once you click on Finish, you will see a small black screen embedded in your Windows screen . Well it’s docker up and running for you .
- Check the Image that i have inserted below . You can see it says “Docker is running”.
- Now some verification steps right !!
- Go to CMD prompt (as an administrator) and type docker version
- You will get details in the console and that’s basically a sanity check .
- The output will show you what we discussed earlier (about running docker on Linux)
- I am not attaching the snip because I want you to try it out .
The output will be something like this,
- Operating system – Windows
- Operating system – Linux
You can access the settings page as well to play around with the settings .
Well that was pretty simple !!!
To all the beginners out there “Try it Out” .
Feel free to ask any questions by dropping a comment . Any suggestions, improvements are highly appreciated.
I will be coming out with the next part of this soon (currently working on Part 2 of Azure Migration blog) , so stay tuned .
Please check other blogs as well , if interested and let me know.
Until then , Bye Bye !!!!!!!