Docker for Mac is the fastest and most reliable way to run Docker on a Mac. It installs all of the tools required to set up a complete Docker development environment on your Mac. It includes the Docker command line, Docker Compose, and Docker Notary.
macOS must be version 10.13 or newer
At least 4 GB of RAM
Mac hardware must be a 2010 or newer model, with Intel’s hardware support for memory management unit (MMU) virtualization, including Extended Page Tables (EPT) and Unrestricted Mode. You can check to see if your machine has this support by running the following command in a terminal
If your Mac supports the Hypervisor framework, the command prints kern.hv_support: 1
If your system does not satisfy these requirements, fear not—all is not lost. You can install Docker Toolbox (https://docs.docker.com/toolbox/overview/), which uses Oracle VirtualBox instead of HyperKit.
install Docker Desktop on Mac
To install Docker for Mac, go through the following steps:
Step 1 : Download Docker for Mac from the Docker Store at https://store.docker.com/editions/community/docker-ce-desktop-mac. You will need to log in in order to download the installer. If you do not have a Docker account, you can create one at https://store.docker.com/signup.
Step 2 : Open the installation file that you downloaded from the store. It should be called something like Docker.dmg.
Step 3 : Drag and drop the whale icon into the Applications folder.
Step 4 : Double-click the Docker.app icon in the Applications folder to start Docker.
Step 5 : You will be prompted to authorize Docker.app with your system password. This is normal—Docker.app needs privileged access to install some of its components. Click OK and enter your password so it can finish installing.
Step 6 : When Docker is finished, a little whale icon will show up in the status menu in the top right of your screen.
Step 7 : If you click on the whale, you can access the application preferences and other options.
Step 8 : Select the About Docker button to verify that you have the latest version.
Step 9 : Check to make sure that it is installed and working. Open up a terminal window and type the following.
docker container run hello-world