一安装docker
二、修改配制vi /etc/docker/daemon.json
{
"registry-mirrors": ["http://hub-mirror.c.163.com"],
"log-driver":"json-file",
"log-opts":{
"max-size" :"5m","max-file":"1"
},
"data-root": "/data/docker"
}
vi /usr/lib/systemd/system/docker.service
ExecStart后面增加 --insecure-registry my-registry:9082 --ipv6=false
vi /etc/hosts
增加39.99.143.212 my-registry
三、执行命令
docker run -d --restart=unless-stopped \
-p 80:80 -p 443:443 \
--privileged \
rancher/rancher:v2.5.9
四、登录rancher
1、访问地址https://10.1.2.23
2、修改密码
标签:原生,--,vi,编排,registry,file,rancher,docker From: https://www.cnblogs.com/innocenter/p/17390901.html