My question is
How to easily install docker to have it available in terminal and how to uninstall docker on osx?
To Install:
To Uninstall:
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
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