Docker Hub vs Docker Desktop Vs Docker Enterprise

Objective of this article is to explain about Docker Desktop which is also known as Docker for Windows or Mac, Docker Enterprise and Docker Hub.

What is Docker Desktop?

Docker Desktop is also known as Docker for Windows/Mac. Docker desktop is the Community Edition(CE) of Docker and it’s designed to run on Windows 10 & Mac OS. Docker desktop provides an Easy-to-use development environment for building, shipping and running Docker containers. For more information about how to setup Docker Desktop, Click Here

Note: Docker desktop or Docker for windows will not compatible on below Windows-10 version. It may cause problems while installing or running containers in prior windows-10 version. So, make sure you are using Windows-10 version.

What is Docker Enterprise?

Docker Enterprise is the Enterprise Edition(EE) of Docker and it’s designed to run on Windows & Linux OS. Docker Enterprise Edition is paid and good to use when we are using multi-OS, multi-Linux or multi-cloud environments.

As per official Docker blog, Docker Enterprise Edition (EE) is the only platform that manages and secures applications on Kubernetes(K8s) in multi-Linux, multi-OS and multi-cloud customer environments. As a complete platform that integrates and scales with your organization, Docker Enterprise Edition gives you the most flexibility and choice over the types of applications supported, general used, and where it’s deployed.

What is Docker hub?

Docker hub is nothing like a app store/market place of docker container images. Docker hub is also known as Cloud-based application registry and development team collaboration services. We can access docker hub by using the below URL.

Steps to Build and Run a project in Docker

The objective of this article to explain how to clone a project from Github, how to build and run a project using docker. To execute the following commands in this article we are using Windows Power Shell app. Copy the below link to clone doodle project as sown in the below snapshot.

 git clone

Open the Power shell app in windows, paste the above link and enter to clone the doodle project into your local from Github. Look at the below screenshot, click on Next Step button to proceed further.

Use the below command to build the doodle project which you cloned. Look at the below snapshot to get the command.

cd doodle\cheers2019 ; docker build -t subbareddyroyal/cheers2019 .

If you have selected the checkbox to use Windows containers instead of Linux containers, you may end up with these build problems with windows containers in Docker.

Look at the complete build log in below,

PS C:\Users\USER\doodle\cheers2019> docker build -t subbareddyroyal/cheers2019 .
Sending build context to Docker daemon  13.31kB
Step 1/9 : FROM golang:1.11-alpine AS builder
1.11-alpine: Pulling from library/golang
9d48c3bd43c5: Pull complete
7f94eaf8af20: Pull complete
9fe9984849c1: Pull complete
ec448270508e: Pull complete
65ba82af53f7: Pull complete
Digest: sha256:09e47edb668c2cac8c0bbce113f2f72c97b1555d70546dff569c8b9b27fcebd3
Status: Downloaded newer image for golang:1.11-alpine
 ---> e116d2efa2ab
Step 2/9 : RUN apk add --no-cache git
 ---> Running in 12294dfcd16f
(1/5) Installing nghttp2-libs (1.39.2-r0)
(2/5) Installing libcurl (7.66.0-r0)
(3/5) Installing expat (2.2.8-r0)
(4/5) Installing pcre2 (10.33-r0)
(5/5) Installing git (2.22.0-r0)
Executing busybox-1.30.1-r2.trigger
OK: 21 MiB in 20 packages
Removing intermediate container 12294dfcd16f
 ---> ad60dc062125
Step 3/9 : RUN go get
 ---> Running in 1aac9775b8fc
Removing intermediate container 1aac9775b8fc
 ---> 36bc85ba1d54
Step 4/9 : WORKDIR /project
 ---> Running in b6b7fb080c76
Removing intermediate container b6b7fb080c76
 ---> 869c1330f798
Step 5/9 : COPY cheers.go .
 ---> 14ad50d63b75
Step 6/9 : RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' 
-o cheers cheers.go
 ---> Running in f7ec6a7e31a5
Removing intermediate container f7ec6a7e31a5
 ---> 1860a3c041b4
Step 7/9 : FROM scratch
Step 8/9 : COPY --from=builder /project/cheers /cheers
 ---> 57ba1a37badc
Step 9/9 : ENTRYPOINT ["/cheers"]
 ---> Running in 4121ff99ce65
Removing intermediate container 4121ff99ce65
 ---> e51c83d4c18f
Successfully built e51c83d4c18f
Successfully tagged subbareddyroyal/cheers2019:latest
SECURITY WARNING: You are building a Docker image from Windows against
a non-Windows Docker host.
All files and directories added to build context will have '-rwxr-xr-x' permissions.
It is recommended to double check and reset permissions for sensitive files
and directories.

Now project build is successfully completed. Then you go to the next step to get the command to run. Look at the below snapshot.

docker run -it –rm subbareddyroyal/cheers2019

When you run the above command, you can see the screen like below and moving the docker symbol.

Now issue the below command to ship this into docker.

docker login ; docker push subbareddyroyal/cheers2019

Look at the below image to see the Pushing progress into Docker. Docker will expect you to provide the authentication details to complete the login process. Once you authenticated successfully, Docker starts the actual Push process.

I hope this is helped you to understand the basics of the Docker. Thanks for visiting my website.

Install Docker Desktop in Windows

We need to get registered with the Docker hub to install Docker on Windows. Remember Docker for windows is also known as Docker Desktop which is specially designed to run on Windows 10 environment. Docker for windows will come up with the Community Edition (CE) which is absolutely free to use.

Docker for windows will have the advantages like ease-to-use in development for building, shipping and running Docker containers.

Use the below URL to navigate to sign up page or click on this link Docker Hub.

The below is the Docker hub sing up form, fill all the mandatory fields highlighted in the snapshot.

Click on the Continue button to navigate to further in the Docker hub account setup. You will be pointed to the Personal details page to fill, first name, last name, and etc information. If you are interested fill the details and save otherwise ignore.

You might have got a Docker hub registration email to your registered email id. Check and click on Confirm your Email With Docker link to confirm your account. This link will be valid 2 days from the day when you get the email to complete your docker registration.

Once you click on the activation link, the page will automatically be redirected to the sign-in page. Look at the below snapshot and enter the valid credentials to sign-in to the Docker hub.

Once you authenticated successfully, you will be navigated to the Docker Hub home page. Look at the below snapshot,

Now click on the Get started with Docker Desktop button as highlighted in above snapshot. You will get see the screen like below snapshot.

In the above screen observe Docker Desktop is offering in two different Operating Systems. One for Windows and another is Mac. Click on depending on the OS which you are using out of these two. I choose the highlighted button because this post is about Docker installation in Windows. Then the actual Docker for windows software will get start downloading.

Double click on downloaded EXE file to start the installation process and click on Yes to install the software in windows alert(It’s depending on OS, may or may not be shown). Then you can a popup like below snapshot.

Once it will complete downloading the packages, it will be shown the Configuration screen looks like below.

As shown on the above page, you can choose the configuration you need to use Windows container or Linux containers. If you want to use Windows containers, select the second checkbox otherwise deselect and click on the Ok button.
Then you can observe unpacking the docker packages. Look like below screen, this will take a while to complete the process…

Once unpacking is done, you can see the screen as below.

So, Docker desktop installation is successfully completed in Windows.

Next: How to build and run a project in Docker?