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
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
Thanks for your feedback! If you have time, please provide details by selecting options below.
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!