本篇介绍了在Mac OS, Windows, Linux下的Docker安装方法。
先来一个官方的介绍:
Docker Engine is available for Linux (CentOS, Debian, Fedora, Oracle Linux, RHEL, SUSE, and Ubuntu) or Windows Server operating systems and is based on containerd - the open source container runtime project that Docker donated to the Cloud Native Computing Foundation (CNCF) in 2017. It is available as both a free community-supported engine and as a commercially-supported enterprise engine (Docker Engine-Enterprise) that also forms the foundation for an enterprise container platform.
基本上全平台已经覆盖,英文好的同学,可以自取。
Mac OS上的Docker安装方法
方法一官方dmg
:
官方下载地址:
Docker Descktop for Mac
对系统的要求:
Requires Apple Mac OS Sierra 10.12 or above. Download Docker Toolbox for previous OS versions.
只要系统是 Mac OS Sierra 10.12以上即可。
下载完Docker.dmg
安装包之后,双击即可以安装,可能需要系统管理员权限,输入密码即可。
运行过后,小图标:
Mac上Docker安装运行之后
安装完之后,在终端工具中,使用docker version
来查看Docker版本。
docker版本
设置中国区加速地址:
docker加速
阿里云加速:Docker 镜像加速器
方法二brew cask:
brew update
brew cask install docker
# 删除的方法, 还需要手动删除Docker.app
brew cask uninstall docker