To Install:
Go Here
Click the “Get Docker” or “Get Docker Desktop for Mac (Stable)” button.
Double-click the DMG
Drag Docker into Applications
Open Docker
Open Terminal after install and docker will be available. Docker should auto-launch on subsequent startups and be available on command line.
To Uninstall:
Click On Docker Icon
Select Preferences
Select Bug Icon for the Troubleshoot menu (Bomb Icon in older Docker UI)
Select Uninstall
By command line
INSTALL
First install cask by type in terminal
brew tap phinze/homebrew-cask
brew install brew-cask
and then type:
brew cask install docker
And run docker by
open /Applications/Docker.app
(or by macOs bottom menu> launchpad > docker – on first run docker will ask you about password)
Thats all 🙂
UNINSTALL
Type brew cask uninstall docker
thats all 🙂
To clean everything (including images/containers) execute below commands:
sudo rm -Rf /Applications/Docker
sudo rm -f /usr/local/bin/docker
sudo rm -f /usr/local/bin/docker-machine
sudo rm -f /usr/local/bin/docker-compose
sudo rm -f /usr/local/bin/docker-credential-osxkeychain
sudo rm -Rf ~/.docker
sudo rm -Rf $HOME/Library/Containers/com.docker.docker # here we delete stored images