docker安装与卸载

笔者在个人Mac电脑操作

安装

简单安装过程,前置条件:Homebrew

使用命令brew install docker

docker 将会安装在 usr/local/Cellar目录下,

如使用命令  brew cask install docker

docker将会安装在 usr/local/bin目录下

查阅文档

https://www.jianshu.com/p/5f7c188b7ad1

可以明确知道 cask命令的原理和使用方式

卸载

如果docker在usr/local/Cellar 目录下,则简单使用 brew uninstall docker,则会卸载docker,若docker安装在usr/local/bin 目录下,则简单使用brew cask uninstall docker,则会卸载docker

其他系统安装请参考

ubuntu 安装docker: https://www.runoob.com/docker/ubuntu-docker-install.html

CentOS  安装docker: https://www.runoob.com/docker/centos-docker-install.html

windows 安装docker:https://www.runoob.com/docker/windows-docker-install.html

原文地址:https://www.cnblogs.com/wangzxblog/p/11018543.html