This article gives you a fair understanding of the Docker Desktop for Windows and MAC users. We will learn the installation of Docker Desktop on Windows and Mac machines. Post-installation, we will also try to perform some of the Docker operations.
Let’s get it started…
Docker Desktop is a native desktop application designed by Docker for Windows and MAC users. It is the easiest way to run, build, debug, and test the Dockerized apps.
Docker Desktop comes up with important and most useful features such as fast edit-test cycles, file change notifications, built-in enterprise network support, and flexibility to work with the own choice of proxies and VPNs. Docker desktop consists of developer tools, Docker App, Kubernetes, and version synchronization. It allows us to create certified images and templates of our choice of languages and tools.
Speed, security, and choice – all will be delivered to you which you need for designing and delivering of containerized applications available on your desktop.
Before jumping to the installation process, let’s have a basic understanding of its editions and releases.
Docker mainly comes in two editions, the Community and the Enterprise edition. The community edition comes with a free set of Docker products. In contrast, the enterprise edition is a certified container platform that facilitates commercial users with add-ons features like image security, image management, orchestration and management of container runtime but at a reasonable cost.
We will begin our learning with Community Edition. Docker containers running on particular Operating System share underlying OS kernel. It means we can’t use windows kernel (host) to run Linux containers or vice versa. To overcome this, we have Docker Desktop for Windows and MAC.
The Docker Desktop community edition release comes in two flavors.
Stable: As the name signifies, Stable edition is thoroughly tested and can be used in developing more reliable apps. Its releases are fully synced up with Docker Engine releases. On the stable channel, there is an option to select whether to send usage statistics or not.
Edge: These versions consist of all new and experimental features of the Docker Engine. There are more chances of bugs, crashes, and issues to occur. However, users will get the opportunity to become familiar with the upcoming features.
Docker on Windows
There are two options available for the Docker on Windows.
#1. Using Docker Toolbox
The Docker Toolbox provides us a set of lightweight tools.
Oracle virtual box
The above tools eliminate the need to deploy a separate VM to run Docker. Just install the Docker toolbox executable directly on the Windows and start developing applications on Docker Containers. It requires 64-bit OS and Windows 7 or higher with virtualization mode enabled in it.
But again, the docker toolbox is the original support provided on Windows to run Docker and its legacy solution for all the Windows OS that do not meet the required configuration.
#2. Using the Docker Desktop
Docker Desktop is the newer technology being used for Docker on Windows. It replaces the Oracle virtual box with a native virtualization technique available on Windows that is Microsoft Hyper-V.
It will still be going to run Docker on the Linux machine created underneath. But this time, instead of using the oracle virtual box, we have used native Microsoft Hyper-V.
Before proceeding with installation, we need to check the system requirement. MAC must meet the below system requirements:
MAC Hardware 2010 or newer with hardware support for memory management and unrestricted mode. Run the command kern.hv_support to verify if MAC hardware supports the Hypervisor framework.
MAC OS version 10.13 or newer. It supports Catalina, Mojave, and High Sierra.
>=4 GB RAM
Virtual-Box before version 4.3.30
Once downloaded, please follow the below instructions:
Double click on Docker.dmg to install and then drag the Docker icon to the Application folder.
Double click on Docker.app to start Docker.
The Docker icon on the top status bar will reflect if the Docker is running, and it can be accessed from the command line.
Similar to Docker Desktop for windows, Docker Desktop for MAC provides Docker Engine, Notary, Docker compose, Kubernetes, and Credential helper.
Working with Images
Once installed, check the version of the Docker Engine installed.
Docker works with shipping and running containerized applications. Either you have to build your own containerized application or Docker maintain containerized images on Docker Hub, and it can be easily downloaded by using simple docker run command.