macOS 安装Docker

本文最后更新于:2 年前

QA

1. Kubernetes is Starting…

解决方法1:
1
2
3
4
rm -rf ~/.kube
open global vpn, fq,
then reset Kubernetes cluster
Waiting 2-5 minutes
解决方法2:
1. Preferences -> Reset -> Reset to factory defaults
2. Daemon

https://registry.docker-cn.com

3. Kubernetes

勾选以下3个

4. 安装依赖镜像
1
2
3
git clone https://github.com/maguowei/k8s-docker-for-mac.git
cd k8s-docker-for-mac/
./load_img.sh

集成kubernetes-dashboard

1
2
3
4
5
6
7
8
# 安装
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml

# 启动
kubectl proxy

# 修改配置
kubectl -n kube-system edit service kubernetes-dashboard

查看日志

打开 Console.app 搜索 docker

参考


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!