Mac安装Docker和K8S

目录

Docker安装

1.brew安装docker

2.如果安装成功就点击启动里面的docker图标进入到如下操作。

Docker安装可能碰到的问题:

K8S安装

1.拉取安装代码

 2.加载docker镜像

3.然后进入到 docker的设置页面

 4.安装dashboad

5.启动代理

6.获取秘钥登录

7.访问管理地址


Docker安装

1.brew安装docker

ruishens-MacBook-Pro:docker ruishen$  brew install --cask --appdir=/Applications docker
==> Downloading https://desktop.docker.com/mac/main/amd64/69879/Docker.dmg
######################################################################## 100.0%
==> Installing Cask docker

==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Linking Binary 'docker-compose.bash-completion' to '/usr/local/etc/bash_completion.d/docker-compose'
==> Linking Binary 'docker.zsh-completion' to '/usr/local/share/zsh/site-functions/_docker'
==> Linking Binary 'docker.fish-completion' to '/usr/local/share/fish/vendor_completions.d/docker.fish'
==> Linking Binary 'docker-compose.fish-completion' to '/usr/local/share/fish/vendor_completions.d/docker-compose.fish'
==> Linking Binary 'docker-compose.zsh-completion' to '/usr/local/share/zsh/site-functions/_docker_compose'
==> Linking Binary 'docker.bash-completion' to '/usr/local/etc/bash_completion.d/docker'
docker was successfully installed!
ruishens-MacBook-Pro:docker ruishen$

2.如果安装成功就点击启动里面的docker图标进入到如下操作。

在接下来有个入门级 的引导使用

上边安装参考:MacOS Docker 安装 | 菜鸟教程

Docker安装可能碰到的问题:

执行 brew install 抱错

​
ruishens-MacBook-Pro:docker ruishen$ brew install --cask --appdir=/Applications docker

Error:

  homebrew-core is a shallow clone.

  homebrew-cask is a shallow clone.

To `brew update`, first run:

  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow

  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow

These commands may take a few minutes to run due to the large size of the repositories.

This restriction has been made on GitHub's request because updating shallow

clones is an extremely expensive operation due to the tree layout and traffic of

Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you

automatically to avoid repeatedly performing an expensive unshallow operation in

CI systems (which should instead be fixed to not use shallow clones). Sorry for

the inconvenience!

==> Downloading https://desktop.docker.com/mac/stable/amd64/65384/Docker.dmg

######################################################################## 100.0%

Error: SHA256 mismatch

Expected: 55e036c4c078a0d1e357d487e7c1a5f13762bfaebace0f9a363ab45f523a828e

  Actual: ded6aab91f0d77e2c7420f429462086fc90f3805ff723a65c029a40535de004c

    File: /Users/ruishen/Library/Caches/Homebrew/downloads/491180351d0f0034d8b727b3a09b70027b84dc6ad7ccafa8aef31198b7706159--Docker.dmg

To retry an incomplete download
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值