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?

  • Bypass install configuration in dockerfile
  • CoreOS & HDFS - Running a distributed file system in Linux Containers/Docker
  • How to configure a GlassFish instance running on AWS/ElasticBeanstalk/Docker?
  • How to configure DNS (and/or loadbalancing) for Docker Swarm Manager
  • Why does Docker claim its container being portable?
  • Docker-compose extend not finding environment variables
  • Where does the convention of using /healthz for application health checks come from?
  • Writting empty object with socket.io
  • How to correctly link php-fpm and Nginx Docker containers?
  • How to restore docker images which are removed by `docker rmi` command?
  • controlling docker-machine (using NAT) outgoing port
  • Docker UCP Error: x509: certificate signed by unknown authority
  • 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.