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?

  • Connecting to a running Erlang application release in a docker container
  • ERR_EMPTY_RESPONSE in process of Sentry installation with Docker inside VirtualBox
  • Installing docker on Ubuntu 16.10
  • How to dockerize web application that will be customized?
  • Building Docker image for a python flask web app. Image does not appear or requirements.txt not found
  • watchman not found on phusion/baseimage Docker image with ember-cli
  • Copy file to a Docker container before starting it
  • Docker containers with one public IP
  • Dockerfile error: /bin/sh: 1: [“python”,: not found
  • can't upate php.ini file in Docker container
  • Running jenkins on docker to simulate red hat linux
  • Apply NetEM WAN delay on a docker container interface
  • 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.