How To: Install Docker for Mac

Docker Docker

Turns out, plenty of native macOS apps can be installed using the brew package manager. Among them is Docker, so I decided to try how it installs and works.

Docker for Mac

The easiest is, of course, just to use the native installer provided by Docker maintaners: you download the Docker.dmg file, install it and end up with an app called Docker Desktop:

Install Docker with brew

But since I wanted to try more automated install, I used brew:

greys@maverick:~ $ brew cask install docker
 ==> Satisfying dependencies
 ==> Downloading https://download.docker.com/mac/stable/37199/Docker.dmg
 Already downloaded: /Users/greys/Library/Caches/Homebrew/downloads/01aa470f5479ce702d59bc8d825681bca704ab964279558efd5a2187b126791c--Docker.dmg
 ==> Verifying SHA-256 checksum for Cask 'docker'.
 ==> Installing Cask docker
 ==> Moving App 'Docker.app' to '/Applications/Docker.app'.
 ๐Ÿบ  docker was successfully installed!
 You have mail in /var/mail/greys

That was it! Overall โ€“ great improvement of the steps I would normally take to install Docker.

Upon starting this /Applications/Docker.app for the first time, I got the security prompt:

Docker Security Prompt Docker App Security Prompt

But thatโ€™s it โ€“ after that Docker worked exactly the same and had the very same versions of all the components:

Docker Docker for Mac

Will be trying my most used software installs using brew, it seems a great way to be downloading/installing software in bulk โ€“ should be great for new laptop setup (if/when I get it) โ€“ I have been upgrading macOS in-place for the past 5 years or so, and think it will be awesome to someday migrate to a brand new clean macOS setup.

See Also Docker Brew Package Manager List Docker Containers Docker Stop All Containers Restart Docker containers

See Also




Contact Me

Follow me on Facebook, Twitter or Telegram:
Recommended
I learn with Educative: Educative
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!
Recent Articles
03 Sep 2024

macOS Sequoia 15.0

02 Sep 2024

Video: Has This Worked Before?

24 Mar 2024

Homelab: Mac Pro 2013 32GB

Recent Tweets