docker web管理页面

DOCKER图形页面管理工具--3种。

基本上是3个工具,DOCKER UI,shipyard,portainer。对比后,shipyard最强大,其次是portainer,最后是docker ui。

docker-ui 安装

[root@rainy ~]# docker search dockerui
NAME                           DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
abh1nav/dockerui               An updated version of crosbymichael/dockerui  91                                      [OK]
kevan/dockerui                 Deprecated: Use  uifd/ui-for-docker             15                                      [OK]
microbox/dockerui              Trusted Automated dockerui image (16MB size)    8                                       
madhavkobal/dockerui           Docker Updated Version having Search, Pull,   7                                       
mgtsai/dockerui.base-xpra      Provide base docker images for X application  2                                       
elegoev/dockerui               dockerui image based on crosbymichael/docker  1                                       [OK]
rediceli/dockerui              Dockerui with nginx for basic auth              1                                       
navionics/dockerui             Docker UI                                       1                                       [OK]
sidd/dockerui                  DockerUI                                        0                                       

# 下载下载量最多的就行。毕竟使用的人多
[root@rainy ~]# docker pull abh1nav/dockerui
Using default tag: latest
latest: Pulling from abh1nav/dockerui
a3ed95caeb02: Pull complete 
5d3df020ecd3: Pull complete 
bebf5a3b4dfb: Pull complete 
e4452c0fe72b: Pull complete 
6167d9726b07: Pull complete 
53ebae19a314: Pull complete 
Digest: sha256:a9c6c5393f561a0f42f41cfa80572b666e745d9b419569c42bac1e5cf9ceda32
Status: Downloaded newer image for abh1nav/dockerui:latest

# 启动直接访问查看
[root@rainy ~]# docker run -it -d --name docker-web -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock   abh1nav/dockerui
22da728aaf237ef143b275ab5adfe671a1de9eda61ddacb60b7e2f858fc1567a
[root@rainy ~]# docker ps -l     # -l 查询最后一个容器
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                    NAMES
22da728aaf23        abh1nav/dockerui    "./dockerui"        10 seconds ago      Up 9 seconds        0.0.0.0:9000->9000/tcp   docker-web

浏览器访问:http://hostIP:9000

docker web管理页面_第1张图片
image.png

shipyard

shipyard 安装
附:官网安装链接。
自动安装:http://shipyard-project.com/automated-deployment/
手动安装:http://shipyard-project.com/manual-deployment/

第一步安装Datastore帐号密码管理容器

docker run \
    -ti \
    -d \
    --restart=always \
    --name shipyard-rethinkdb \
    rethinkdb

第二步安装集群发现Discovery服务

docker run \
    -ti \
    -d \
    -p 4001:4001 \
    -p 7001:7001 \
    --restart=always \
    --name shipyard-discovery \
    microbox/etcd -name discovery

第三步安装docker-proxy协议代理

docker run \
    -ti \
    -d \
    -p 2375:2375 \
    --hostname=$HOSTNAME \
    --restart=always \
    --name shipyard-proxy \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -e PORT=2375 \
    shipyard/docker-proxy:latest

第四步安装Swarm管理节点

docker run \
    -ti \
    -d \
    --restart=always \
    --name shipyard-swarm-manager \
    swarm:latest \
    manage --host tcp://0.0.0.0:3375 etcd://:4001

第五步安装Swarm从节点

docker run \
    -ti \
    -d \
    --restart=always \
    --name shipyard-swarm-agent \
    swarm:latest \
    join --addr :2375 etcd://:4001

最后一步安装Shipyard管理界面

docker run \
    -ti \
    -d \
    --restart=always \
    --name shipyard-controller \
    --link shipyard-rethinkdb:rethinkdb \
    --link shipyard-swarm-manager:swarm \
    -p 8080:8080 \
    shipyard/shipyard:latest \
    server \
    -d tcp://swarm:3375

访问http://[ip-of-host]:8080即可访问web-ui界面

帐号:admin
密码:shipyard


docker web管理页面_第2张图片

你可能感兴趣的:(docker web管理页面)