下载镜像:
[root@localhost hongdada]# docker pull rancher/server:preview
运行容器:
[root@localhost hongdada]# docker run -d --restart=unless-stopped -p 80: -p : rancher/server:preview
9d3a14a9fe46bc0d55ffd7b1909e280a40fec112a49f5af1fb2c97432d3166d7
查看:
[root@localhost hongdada]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7f59e117b671 rancher/server:preview "rancher --http-li..." seconds ago Up seconds 0.0.0.0:->/tcp, 0.0.0.0:->/tcp objective_ritchie
[root@localhost hongdada]# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/rancher/server preview 3141e5c66ee8 months ago MB
可以看出2.0版本比1.6.8版本简洁了许多
结果:
开始要设置密码,并且是https协议的
参考:
https://www.cnrancher.com/rancherv2-0-quick-start-guide/