直接通过docker镜像来运行我们的rancher,首先,先从镜像中心下载rancher镜像,如果是1.x系列的,镜像名为rancher/server,而2.x是rancher/rancher,此次安装的为2.x版本。
1.执行如下命令:
docker pull rancher/rancher
6ca5cca6106b: Pull complete
28cb44c70eee: Pull complete
......
Digest: sha256:c9bee6fb020d4142622b05aec6e7f34e7347e6688a3982460fd481a51649ad43
Status: Downloaded newer image for rancher/rancher:latest
docker.io/rancher/rancher:latest
2.查看pull的镜像列表
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
rancher/rancher latest c9fbb6293409 5 days ago 1.39GB
3.查看rancher镜像详细信息
docker inspect rancher/rancher:l