Installing Docker Desktop Version 2.x on macOS Big Sur via Homebrew
Docker Desktop for macOS version
3.x has been released long time ago. So, may be, you want to install version
You should have
homebrew-cask on your mac. If you do not have then install them.
You can see the last state of the cask which is needed at https://github.com/Homebrew/homebrew-cask/blob/master/Casks/docker.rb
But, if you want to install an older version of Docker Desktop then you should see the history at https://github.com/Homebrew/homebrew-cask/commits/master/Casks/docker.rb
Choose the version which you desire and copy the of the raw
rb file. The url looks like this:
Now, prepare the downloader command:
$ curl -o /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/<cask-name>.rb "https://raw.githubusercontent.com/Homebrew/homebrew-cask/<commit-hash>/Casks/docker.rb"
When the file has been downloaded, open it to edit:
$ nano /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/<cask-name>.rb
Change first line:
cask "docker" do
cask "<cask-name>" do
Save it and remove
/Applications/Docker.app if exists.
Finally, install your cask:
$ brew install --cask <cask-name>
It is ready, launch it…
You can contact me via http://www.abdullahpazarbasi.com/iletisim