Day 2 - Setup Docker Desktop and IDE Tools

Step By Step Installation of Docker Desktop on Windows 10Pro

In this article we are going to install Docker on Windows 10Pro. We will be proceeding with below configuration.

We will be following steps as per official Docker installation Docs docker-desktop on windows

Prerequisites.

  • 64-bit processor with Second Level Address Translation (SLAT)
  • 4GB system RAM
  • BIOS-level hardware virtualization support must be enabled in the BIOS settings.
  • Windows 10Pro
Install and Update WSL 

As we in this article I will be using Windows 10Pro, so before proceeding further we need to install WSL and update the same as below.

Open Command Prompt, right-click and select Run as administrator.

Enter the following command and press Enter:
wsl --install

Once installation completes, we need to update the same as using below command in Command prompt.

wsl --update

Download Docker Desktop Software.

1=> Go to the Docker Desktop for Window and download software for Docker as below.

2=> Once Downloaded Click on setup and start installation as below.





3=> Once installation is complete, restart the system as below.



4=> Post System restart, click on Docker shortcut which is placed on Desktop.


5=> Docker Desktop will be seen as 


At this stage out Docker Desktop is now installed properly. Now open command prompt terminal and execute below command to test if docker is able to fetch images. 
 
C:\Users\Admin> docker run hello-world

Unable to find image 'hello-world:latest' locally

latest: Pulling from library/hello-world

719385e32844: Pull complete

Digest: sha256:c2e23624975516c7e27b1b25be3682a8c6c4c0cea011b791ce98aa423b5040a0

Status: Downloaded newer image for hello-world:latest

Hello from Docker!

This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:

 1. The Docker client contacted the Docker daemon.

 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.

    (amd64)

 3. The Docker daemon created a new container from that image which runs the

    executable that produces the output you are currently reading.

 4. The Docker daemon streamed that output to the Docker client, which sent it

    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:

 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:

 https://hub.docker.com/

For more examples and ideas, visit:

 https://docs.docker.com/get-started/

C:\Users\Admin>

And as we can see docker is able to fetch image and hello-world sample output displayed.

Step By Step Installation of IDE (Visual Studio Code) on Windows 10Pro

Till now we have installed Docker Desktop (which includes Docker Engine) on Windows 10Pro. Now to ease the working/coding we need supporting tools like IDE for better programming tweaks.

Now we will be installing Visual Studio Code on Windows 10Pro machine and further we will be doing few extensions setup as well.

Step 1=> Go to Visual Studio Code link and Download Software for Windows as below.




Step 2=> Post Download of installed run installed after clicking on executable. Below screen will appear, accept terms and continue.


Step 3=> Click on Install to proceed.




Step 4=> Click on FINISH to complete installation.



Step 5=> Now we need to install Extensions for Docker as below.

Open Visual Studio Code and look for extension button and there search "Docker" extension. Post that click on install that extension. Same we also need "Prettier" and "WSL" extension as well.







Final outcome as below.





Step 6=> Now, it's time to test our Visual Code Studio setup. 
Open Terminal (Click on Terminal tab and Click New Terminal) and then execute below command to check if Docker able to communicate.

docker run hello-world


As we can see docker is running now and we are able to fetch the image.

No comments:

Post a Comment

Total Pageviews