% brew cask install docker
Error: `brew cask` is no longer a `brew` command.
Use `brew --cask` instead.
Reason for the error:
The syntax brew cask <command> has been deprecated since Homebrew 2.6.0 and disabled since 2.7.0. This has been replace by in favor of brew <command> --cask
Read more: https://github.com/Homebrew/discussions/discussions/340#discussioncomment-232364
Solution:
brew <command> --cask
Example:
% brew install docker --cask
Running `brew update --auto-update`...

Have Questions? Post them here!
- How to find path of file on Mac Terminal
- How to disable Siri on Mac Monterey
- [fix] macOS Ventura xcrun: error: invalid active developer path missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
- Select Line Number TextEdit on Mac
- Go to Specific file path using Mac Finder
- How to find Java HOME in Mac Terminal
- bash: command not found error [macOS Terminal Linux, Unix or Windows]
- Must Know Homebrew Commands for Mac/Linux Users
- How to Insert an Inverted Question Mark on Mac ¿
- Hide Keyboard Text Input Icon on macOS Ventura Menu Bar
- How to make macOS Terminal window Transparent (or Opaque)
- How to check of Updates on Microsoft Edge Browser on Mac (macOS)
- Limit scrollback rows in macOS Terminal
- How to identify installed Java (JDK) Version on macOS
- Keyboard Shortcut to delete a file on a Mac [Macbook]
- Open Docker from Terminal Command on Mac
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to take a screenshot on a Mac - updated for Ventura 13 [updated 2023]
- ls: .: Operation not permitted - Mac Terminal ZSH Error
- How to remove username from Mac Menu Bar?
- macOS Ventura XCode Command Line Tools Installation
- Where is .zshrc file located in macOS
- How to Show Path of Files or App in Mac Spotlight Search
- How to enable root user on Mac Terminal
- Install Java 17 (LTS) JDK on ARM based M1/M2 Mac Natively
- Clone a particular remote brach using git clone command - Git
- Ways to Convert Integer or int to Long in Java - Java
- Remove Now Playing icon from macOS Big Sur Menu Bar - MacOS
- WhatsApp Web escanner - WhatsApp
- [Android Studio] failed to find Build Tools revision 23.0.0 rc1 - Android-Studio
- Encode or Decode Base64 String using Mac Terminal Command - MacOS
- Git Rename master branch make to main using Command - Git
- How to display Toast on Button Click : Android - Android