Docker for Mac

  1. 查看系统是否兼容:sysctl kern.hv_support
  2. 安装:Homebrewhttps://brew.sh/
  3. 查看更新:brew update
  4. 安装cask,brew的扩展:brew tap caskroom/cask
  5. 查看是否有docker包:brew cask search docker
  6. 安装docker:brew cask install docker
安装成功后
 
首次启动:
请求获取管理员权限,安装网络模块用于连接docker应用
我的docker cloud账号
dockerhenryztong
 
检查是否启动成功:
HenrydeMacBook:~ henry$ docker run hello-world
执行原理
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.

猜你喜欢

转载自www.cnblogs.com/TomBombadil/p/10996050.html