Skip to main content

How to Install Docker in Windows 10 pro

This document will show how to install Docker in windows 10 pro.

Why pro version?  Because windows pro supports HyperV. HyperV is the new virtualization technique from Microsoft Windows. It's actually not that simple. 
Hyper-v is not just another VM platform, it's a type-1 hypervisor which starts before the host OS, therefore the host OS itself is a VM.
After installing HyperV, you will not be able to use any other VM technologies, like Virtual box or VM Ware. So keep in mind, with HyperV, please do not install Virtual box or VMWare.

Docker from windows uses HyperV technology to spin docker container.
Before installing docker for windows, please make sure you do have windows 10 pro (updated) and HyperV is enabled. Sometimes, you might need to enable virtualization from bios as well.

1. We will download docker community edition for windows from "store.docker.com"
the link I am using is "https://store.docker.com/editions/community/docker-ce-desktop-windows"
I am selecting "Stable channel". This the most recent stable edition, if you want to experiment with most updated edition, then you should download "Edge channel".

2. Once downloaded, then go ahead and install it. Once installed, Docker starts automatically. The whale in the notification area indicates that Docker is running, and accessible from a terminal. If it did not run automatically, then you can run the docker by double-clicking "docker for windows" icon, in the desktop. Alternately you can search for it form windows menu and run it.
If HyperV is not enabled, then docker will enable it for you and re-start the PC.

3. Once all set, you can test the docker by Open a command-line terminal like PowerShell, and try out some Docker commands!
Run "docker version" to check the version.
Run "docker run hello-world" to verify that Docker can pull and run images.
Here is the screenshot from my computer.
I am using powerShell. Do not use PowerShell ISE.

Version

hello world

In the background "hello world" example run a tiny Linux container. You can see this once you open up HyperV Manager. Like the screenshot.




*By default, Docker uses Linux containers, not windows containers. If you want to change this behavior, then during installation you could change the setting and select windows container, or specify during docker deployment.


I also need to create an account with docker cloud. This will be useful if you want to upload your custom docker image into the cloud or download some docker file from docker cloud. Just remember while login to desktop docker tool, use your username not email for login. Else you will get username password error.



Coming up - Working with Docker

Comments

  1. One of the most appreciated features in Windows 10 is the option to enable virtualization in windows 10. Windows has its own platform for making this Virtualization happen, which is called Hyper-V.

    ReplyDelete

Post a Comment

Popular posts from this blog

HOW TO PARSE XML DATA TO A SAPRK DATAFRAME

Purpose :- In one of my project, I had a ton of XML data to perse and process. XML is an excellent format with tags, more like key-value pair. JSON also is almost the same, but more like strip down version of XML, So JSON is very lightweight while XML is heavy. Initially, we thought of using python to parse the data and convert it to JSON for the spark to process. However, the challenge is the size of the data. For the entire 566GB of data would take a long time for python to perse alone. So the obvious choice was the pyspark. We want to perse the data with the schema to a data frame for post-processing. However, I don't think, out of box pysaprk support XML format. This document will demonstrate how to work with XML in pyspark. This same method should work in spark with scala without significant changes. Option 1:- Use spark-xml parser from data bricks Data bricks have 2 xml parser; one spark compiles with scala 2.11 and another one with scala 2.12. Please make sure yo...

How to download really big data sets for big data testing

For a long time, I have been working with big data technologies, like MapReduce, Spark, Hive, and very recently I have started working on AI/ML. For different types of bigdata framework testing and text analysis, I do have to do a large amount of data processing. We have a Hadoop cluster, where we usually do this. However recently, I had a situation where I had to crunch 100 GBs of data on my laptop. I didn't have the opportunity to put this data to our cluster, since it would require a lot of approval, working with admin to get space, opening up the firewall, etc. So I took up the challenge to get it done using my laptop. My system only has 16 Gb of ram and i5 processor. Another challenge was I do not have admin access, so I can not install any required software without approval. However, luckily I had Docker installed.  For processing the data I can use Spark on local mode as spark support parallel processing using CPU cores. As i5 has 4 cores and 4 threads, the sp...

How to Install Spark 3 on Windows 10

 I have been using spark for a long time. It is an excellent, distributed computation framework. I use this regularly at work, and I also have it installed on my local desktop and laptop. This document is to show the installation steps for installing spark 3+ on Windows 10 in a sudo distributed mode. Steps:- Install WSL2 https://docs.microsoft.com/en-us/windows/wsl/install-win10 Install Ubuntu 20.4 LTS from the Microsoft store. Install windows terminal form the Microsoft store. This step is optional. You can use PowerShell or MobaXterm Fire up the Ubuntu from WSL Once logged in, then go to home dir “ cd ~ ” For spark, we need  Python3 Java  Latest Scala Spark with Hadoop, zip file Let's download and install all the prerequisite install python sudo apt-get install software-properties-common sudo apt-get install python-software-properties install Java (open JDK) sudo apt-get install openjdk-8-jdk Check the java and javac version java -version javac -version Install Scala ...