How to easily install and uninstall docker on MacOs

My question is

How to easily install docker to have it available in terminal and how to uninstall docker on osx?

  • ASP.NET Core run angular build before docker build
  • Mount non-existing host directory into non-root container
  • redis official docker image port exposure to windows
  • Windows 10 Docker Host - Display GUI application from Linux Container
  • Docker and file upload server
  • Docker on VMs only and not on Physical Machine?
  • Serving Rails' precompiled assets using nginx in Docker
  • Is swarm required for using multi-host networking feature using overlay in docker
  • In Docker WordPress image what causes a delay in copying application files?
  • Docker mount error in windows
  • Sinatra app on AWS Beanstalk with docker and SQS
  • Connecting docker client to remote docker daemon over TLS
  • One Solution collect form web for “How to easily install and uninstall docker on MacOs”

    INSTALL

    First install cask and then type in terminal:

    brew cask install docker

    And run docker by Mac bottom menu> launchpad > docker (on first run docker will ask you about password). Thats all 🙂

    UNINSTALL

    Type brew cask uninstall docker . If you install docker in other way than by brew cask then 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
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.