I just started another day to write some code and Aurelia Framework caught my eyes. There are several ways in which we can install but using Node and Webpack seems neater way. Also, I’m in much favour for writing programs in Linux rather in Windows (Windows 10 is awesome though!). Previously install dual boot of linux in my system but just thinking, why the hell i need a dual boot if only i need just for programming. Ta-da! There is Docker ofcourse and recent version of them even provides Docker for Windows 10 directly. So, here we are today going to see and installing docker for windows 10.
Installing Docker for Windows 10
There are ways in which you can install Docker for Windows
- Docker for Windows (recommendedfor windows 10 machine!)
- Docker Toolbox (https://docs.docker.com/toolbox/overview/)
- 64 bit Windows 10 Pro, Enterprise and Education
- The Hyper-V package (Virtual machine!)
If you have passed requirement no 1, lets started on 2. (else use Docker toolbox) Even though according Docker, “The Docker for Windows installer will enable it for you, if needed.”.
You have to enable one more thing for “Hyper-V” first, else you will get the below error message after installing docker.
Hardware-assisted virtualization and data execution protection must be enabled in the BIOS
1. How to Enable Virtualization in Windows 10:
This is a tricky part for beginners, but very simple one. You have enable it BIOS screen.
- Restart your system
- Proceed to BIOS page (F2 for ASUS)
- Search for
Virtualization Technologyand enable it
- Save and reboot
Thats it. For the next step.
2. How to Enable Hyper-V:
You can either let Docker do this or you can do it yourself (It’s always useful to learn it manually!)
Turn windows features on or offin Search
- Scroll and see
Hyper-Vand check it!
- Restart again!
Finally, all our pre requirements has been completed. Now, lets see how to install Docker for Windows 10.
3. Installing Docker
- Download the stable
Docker for Windows
- Follow the simple Wizard and Hit finish.
- Thats it, as simple as that.
Now let’s verify whether Docker is installed, go to
Powershell and type
docker --version. Did you get the below
You have successfully installed Docker in Windows 10, awesome!!!
4. Installing Ubuntu on Docker for Windows.
Next stop, let’s install Ubuntu in Docker to achieve our final goal
In powershell, give following command
$ docker run -it ubuntu bash
This will install ubuntu Docker Image in our Virtual Machine.
Now you are root user
root@014150a01c9f:/# i.e. you are inside the Ubuntu Virtual Machine!
cat /etc/*release, you got the
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
VERSION="16.04.1 LTS (Xenial Xerus)"
PRETTY_NAME="Ubuntu 16.04.1 LTS"
Thats it!! We have installed Ubuntu 16.04 in Windows 10 Machine!
Hopefully this will give you the way to harness the power of both Ubuntu and Windows in a single machine! Stay tuned for more about using Docker