Docker 编排工具Rancher 2.0

 

下载镜像:

[root@localhost hongdada]# docker pull rancher/server:preview

运行容器:

[root@localhost hongdada]# docker run -d --restart=unless-stopped -p 80:80 -p 443:443 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..."   5 seconds ago       Up 4 seconds        0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   objective_ritchie
[root@localhost hongdada]# docker image ls
REPOSITORY                 TAG                 IMAGE ID            CREATED             SIZE
docker.io/rancher/server   preview             3141e5c66ee8        2 months ago        535 MB

可以看出2.0版本比1.6.8版本简洁了许多

结果:

开始要设置密码,并且是https协议的

 

 

 

 

参考:

https://www.cnrancher.com/rancherv2-0-quick-start-guide/

https://my.oschina.net/u/3330830/blog/1800899

https://www.cnblogs.com/xzkzzz/p/9106218.html

 

posted @ 2018-07-06 18:13  hongdada  阅读(433)  评论(0编辑  收藏  举报