Mac安装Docker

一、下载

从官网下载速度太慢,推荐在阿里云镜像下载。

下载地址:http://mirrors.aliyun.com/docker-toolbox/mac/docker-for-mac/stable/Docker.dmg

二、安装

  1、双击Docker.dmg,移动app

  2、启动docker

  3、初次打开会提示输入Mac的密码

三、配置加速器

不配置加速器不行么?如果能接受构建镜像时的“没有最慢,只有更慢”是可以的。

阿里云加速器:https://cr.console.aliyun.com/cn-beijing/instances/mirrors

配置步骤:

验证镜像是否配置成功:

bogon:~ lampardfrank$ docker info
Client:
……………..  
Registry Mirrors:
  https://l91xp1be.mirror.aliyuncs.com/
 Live Restore Enabled: false
 Product License: Community Engine

bogon:~ lampardfrank$ 

还有网易加速器可供选择,地址:http://hub-mirror.c.163.com 

原文地址:https://www.cnblogs.com/ailiailan/p/13448161.html