Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

docker安装-macOS

  • 用brew安装

    brew install --cask docker
    
  • 在应用台找到并打开,然后赋予权限

  • 更换国内源,找到应用图标 -> Perferences -> Docker Engine,添加如下内容

    "registry-mirrors": [
        "https://hub-mirror.c.163.com"
    ]
    
    • 然后点击Apply&Restart
    • 执行docker info,如果倒数第二行输出有上面的网址,代表成功