Docker 编排工具Rancher 2.0

下载镜像:

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

运行容器:

[root@localhost hongdada]# docker run -d --restart=unless-stopped -p 8686:80 -p 443:443 rancher/server:preview
9d3a14a9fe46bc0d55ffd7b1909e280a40fec112a49f5af1fb2c97432d3166d7

查看:

[root@localhost hongdada]# docker images
REPOSITORY                 TAG                 IMAGE ID            CREATED             SIZE
docker.io/rancher/server   stable              85b3b338d0be        4 weeks ago         1.08 GB
docker.io/rancher/server   preview             3141e5c66ee8        2 months ago        535 MB
docker.io/rancher/agent    v1.2.10             6023e1a77132        3 months ago        237 MB
 
[root@localhost hongdada]# docker ps
CONTAINER ID        IMAGE                    COMMAND                  CREATED             STATUS              PORTS                                        NAMES
9d3a14a9fe46        rancher/server:preview   "rancher --http-li..."   32 seconds ago      Up 28 seconds       0.0.0.0:443->443/tcp, 0.0.0.0:8686->80/tcp   sleepy_snyder
405098f5d979        rancher/server:stable    "/usr/bin/entry /u..."   4 hours ago         Up 25 minutes       3306/tcp, 0.0.0.0:8888->8080/tcp             relaxed_wescoff

参考:

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

扫描二维码关注公众号,回复: 1914610 查看本文章

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

猜你喜欢

转载自www.cnblogs.com/hongdada/p/9275031.html