% 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!
More Posts related to MacOS,
- How to Open Finder using Mac Terminal
- How to install maven in macOS using Terminal Command
- How to install iTerm2 Mac Terminal Alternative
- Find Mac version using terminal command
- Zsh Shell: Custom alias that you may find useful
- How to Uninstall Brew on Mac
- Go to Specific file path using Mac Finder
- How to open new tabs macOS Terminal
- fix macOS: The digital signature on the update is missing or invalid. Ventura
- ls: .: Operation not permitted - Mac Terminal ZSH Error
- Closest Alternate to Notepad on Mac
- How to Open Trash on Mac
- How to uninstall Microsoft Outlook on Mac
- [fix] macOS Ventura xcrun: error: invalid active developer path missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
- [Vi/Vim] How to move cursor to the start of a line
- macOS 13 Ventura - The New About this Mac Window
- Best Free Gif screen capture app now available for M1 Chip Mac - LICECap
- 30+ Zoom video communications application shortcuts for macOS
- How to create alias in macOS
- How to install Node using Brew on Mac
- How to start/boot macOS in safe mode - Big Sur 11.0, Catalina 10.15, or Mojave 10.14
- Cant find System Preferences... under macOS Ventura Apple Menu?
- Mac turn dark mode on or off using terminal command
- How to Close Safari in Mac using Keyboard shortcut
- How to Upgrade Mac from Monterey to macOS Ventura
More Posts:
- Know Bash shell version command - Bash
- Setup Git + Visual Studio Code Tutorial - Git
- How to delete SharePoint Online List Item using REST API - SharePoint
- How to find someone on Instagram - HowTos
- List of 28 Protocols supported by cURL with Examples - cURL
- Vertical align two div's in Bootstrap [HTML CSS] - Bootstrap
- Create Custom Android AlertDialog - Android
- How to Subscribe to Google Nest Aware on iPhone - Google