Install Docker on Mac using brew cask


If you want to install Docker on your Mac using Terminal command, you can make use of brew cask command.

brew install --cask docker

Installation Logs:

==> Downloading https://formulae.brew.sh/api/cask.jws.json
########## 100.0%
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-cask/../Casks/d/docker.rb
########## 100.0%
==> Downloading https://desktop.docker.com/mac/main/arm64/120376/Docker.dmg
########## 100.0%
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Linking Binary 'docker' to '/usr/local/bin/docker'
Password:
==> Linking Binary 'docker-compose' to '/usr/local/bin/docker-compose'
==> 'docker-credential-desktop' to '/usr/local/bin/docker-credential-desktop'
==> 'docker-credential-ecr-login' to '/usr/local/bin/docker-credential-ecr-login'
==> 'docker-credential-osxkeychain' to '/usr/local/bin/docker-credential-osxkeychain'
==> 'docker-index' to '/usr/local/bin/docker-index'
==> 'hub-tool' to '/usr/local/bin/hub-tool'
==> 'com.docker.vpnkit' to '/usr/local/bin/vpnkit'
==> 'docker.bash-completion' to '/opt/homebrew/etc/bash_completion.d/docker'
==> 'docker.zsh-completion' to '/opt/homebrew/share/zsh/site-functions/_docker'
==> 'docker.fish-completion' to '/opt/homebrew/share/fish/vendor_completions.d/docker.fish'
==> 'kubectl' to '/usr/local/bin/kubectl.docker'
==> 'com.docker.cli' to '/usr/local/bin/com.docker.cli'
🍺  docker was successfully installed!

Docker will be installed based on your Mac processor type - Intel/ARM - M1/M2.

Let's check if it is installed correctly.

docker --version

Docker version 24.0.6, build ed223bc
Installed Docker on Mac using brew cask

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap