rancher安装(mac)
sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable
由于是国内网络,拉取镜像失败了。
Unable to find image 'rancher/server:stable' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
百度了一下,可以用国内一些云平台的镜像市场,和镜像加速器。本人选择了道云。
首先注册了个账户,道云,找到rancher镜像,查看地址
然后配置镜像加速器后,执行docker pull命令
docker pull rancher/server:v1.6.27-rc1
镜像拉取完成后,启动rancher
sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:v1.6.27-rc1
查看本机地址后,在浏览器访问rancher
ifconfig |grep inet
地址为「本机ip:8080」