This article is written for those who were searching for a detailed and simple for the understanding guide on how to install Docker Desktop on macOS.
Docker Desktop is an application for building and sharing containerized applications and microservices.
Follow the link https://www.docker.com/products/docker-desktop and click on the “Download for Mac” button.
This tutorial will walk you through installing the Stable version of Docker Desktop. If you want to install the experimental (Edge) version of Docker Desktop, then you need to select “Edge” from the dropdown list.
Go to the Downloads folder and double-click on the Docker.dmg file with the left mouse button.
Now you need to move the Docker application to the Applications folder.
Go to “Applications” and double-click on the Docker.app file with the left mouse button.
Next, you need to confirm that you trust the Docker application that was downloaded from the Internet.
Click on the “Open” button.
In the next step, you will see a warning that Docker Desktop needs additional rights to install prerequisites.
Click on the “OK” button.
Next, you need to specify the username and password of an account with administrator rights on your computer and click on the “Install Helper” button.
Docker Desktop installation completed successfully.
Click on the “Skip tutorial” button.
Now you can start the first container.
Save the received command.
Go to “Applications”, then open the “Utilities” folder and double-click on Terminal.app with the left mouse button.
Insert the previously received command
docker run -d -p 80:80 docker/getting-started and press the “Enter” button.
Return to the Docker Desktop application.
The container started successfully and appears in the Docker Desktop app.
Now click on the “Open in Browser” button to the right of the running container.
The browser window will display information about the previously run command that launched your first container.
Now you need to log in with your Docker Hub account.
If you do not already have an account at https://hub.docker.com, then register for more options.
If you already have an account at https://hub.docker.com, go back to the Docker Desktop application and click on the “Sign in” button located in the upper right corner.
Then specify the login and password for the Docker Hub account and click on the “Sign in” button.