% brew cask install docker
Error: `brew cask` is no longer a `brew` command.
Use `brew <command> --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`...

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 time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!