The right way to install Docker on a Mac

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 command.

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

brew install --cask 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.

See also

Belarusian Alphabet Poster, English-Labeled
$17.99

The Belarusian alphabet chart.

Primates Evolutionary Tree Poster
$15.99

A poster featuring the phylogenetic tree of primates.

opera IPA Transcription Poster
$14.99

A poster featuring the phonetic transcription of "opera" in the International Phonetic Alphabet (IPA).

Cyclohexane Molecule Poster, 2D Structure, English-Labeled
$19.99

A poster featuring the 2D structure of the cyclohexane molecule.

Dockerfile Editor

A simple online editor for Dockerfiles.

SQL Formatter

Beautify SQL code.

Receiving email with Node.js

How to receive email in Node.js?

Praat Script Editor

An online editor for Praat scripts.

Introduction to SPARQL

SPARQL is a query language for graph data. The graph model of thinking fits well a lot of use cases.

All prices listed are in United States Dollars (USD). Visual representations of products are intended for illustrative purposes. Actual products may exhibit variations in color, texture, or other characteristics inherent to the manufacturing process. The products' design and underlying technology are protected by applicable intellectual property laws. Unauthorized reproduction or distribution is prohibited.