Goglides Dev

Goglides Dev is a community of amazing users

We are working on this space so that IT professionals can grow together.

Create account Log in
Cover image for Docker for Desktop(MAC edition)
Rahul Gautam
Rahul Gautam

Posted on • Updated on

Docker for Desktop(MAC edition)

If you are familiar with containers or containerization, You might be familiar with Docker. We can now use Docker in multiple ways. This blog will use Docker in GUI(Graphical User Interface).

Docker Desktop

Docker Desktop is available for Windows, MAC, and Linux. We will be using Docker Desktop on MAC with apple chip in this blog.

Installing Docker Desktop.

1) First, visit https://www.docker.com/products/docker-desktop/ and select your compatible option.

Image description

2) Here, we will be selecting Mac with Apple Chip. Now, You can see a dmg file being downloaded.

Image description

3) Open the dmg file and install docker.

Image description

4) Now, You will be greeted by Docker Desktop home page.

Image description

Your Docker Desktop Installation is completed. It was easy to install the application. Now, let's explore this application and see what can be done.

What does it Include?

Docker for desktop includes

  • Docker Engine
  • Docker CLI client
  • Docker Compose
  • Docker Content Trust
  • Kubernetes
  • Credential Helpers

Creating K8s Cluster with Docker For Desktop

1) First, You click on the gear icon on the top right, as shown in the image

Image description

2) Once you click it, you can see the Preferences tab.

Image description

3) Now, Click on Kubernetes

Image description

4) You can see an option to enable it. After you select it, Apply & Restart

Image description

5) It prompts you for installation of k8s click install.

Image description

6) Once the installation is completed

Image description

You can now use Kubernetes with Docker for Desktop.

Now, I have minikube installed on my device already. Let's check what node is my k8s running. For this, open your terminal and enter the command.

kubectl get nodes
Enter fullscreen mode Exit fullscreen mode

You can see,

Image description

Now, Let's change our node to docker-desktop

On the top right, you can see Docker icon,

Image description

Click on the icon, and the Kubernetes tab, select

Image description

docker-desktop

Now, use the command we did before

kubectl get nodes
Enter fullscreen mode Exit fullscreen mode

You can see the node is changed to docker-desktop.

Image description

Discussion (0)