EckherInsightsContact
Eckher
Your guide to what's next.
Eckher
Home › Eckher Insights › The right way to install Docker on a Mac
Aug 21, 2020

The right way to install Docker on a Mac

Installing Docker Desktop for Mac using the Homebrew package manager.

To build, debug, and test Dockerized apps on your macOS machine, you first need to install Docker. Docker is a highly complex product that includes the Docker daemon, Docker client program, and other components. All these components are provided within the official Docker application called Docker Desktop for Mac.

While Docker Desktop for Mac can be downloaded directly from Docker Hub, it is better to install it with a package manager such as Homebrew. With Homebrew, apps can be installed using a single brew install or brew cask install command.

To install Docker Desktop for Mac with Homebrew, run the following command:

brew cask install docker

This command installs the stable community edition of Docker Desktop through Homebrew Cask. The Docker Desktop installation includes Docker Engine, Docker CLI client, Docker Compose, Kubernetes, and a few other components.

Once this is done, launch the Docker app to finish the installation. This will make the docker command available in your PATH by creating a symlink in /usr/local/bin.

To test your installation, run:

docker version

This should print the Docker version information. If you encounter problems, check the official Docker documentation, GitHub issues, or the Docker Desktop forum.

Cover
See also
Running Neo4j in Docker with the Graph Data Science library
How to run the official Neo4j Docker image and enable the Graph Data Science library?
Amazon EC2 Mac instances: Provisioning macOS compute environments in the AWS cloud
Powered by Apple Mac minis, EC2 Mac instances allow developers to provision macOS-based environments in the cloud and benefit from the pay-as-you-go pricing model.
Here's the full list of AWS services
A complete list of services offered by Amazon Web Services, with the latest additions.
Safely creating new directories using the Node.js File System API
How to safely create directories using the native file system module in Node.js?
Eckher
Your guide to what's next.
Copyright © 2021 Eckher. Various trademarks held by their respective owners.