Docker【部署 02】可视化工具DockerUI和Shipyard安装使用实例

本文介绍了DockerUI,一个易用的Docker管理工具,通过Web界面简化操作,支持镜像管理与升级;同时讨论了Shipyard,一个基于DockerSwarm的集群管理工具,提供了全面的API和用户界面。两者都强调了中文界面和API的集成。
摘要由CSDN通过智能技术生成

1.DockerUI

1.1 简介

DockerUI是一个易用且轻量化的 Docker 管理工具,透过 Web 界面的操作,更方便对于 Docker 指令不熟悉的用户更快进入 Docker 的世界。
DockerUI拥有易操作化化界面,不须记忆Docker指令,仅需下载镜像即可立刻加入完成部署。基于 Docker 的特性,于 DockerUI 中可以直接更新镜像的版本,使用相同的设置,重新部署并取代原来的容器即可完成升级,使用最新版本的功能。
DockerUI功能覆盖Docker Cli命令行95%以上的命令功能, 通过DockerUI界面里提供的可视化操作功能,轻松的进行Docker环境和Docker Swarm集群环境的管理和维护功能。
DockerUI是一个可视化的Docker容器镜像的图形化管理工具,利用DockerUI可以轻松构建,管理和维护Docker环境。 而且完全开源免费,基于容器化的安装方式,方便高效部署。
https://github.com/gohutool/docker.ui

1.2 安装

# From hub.docker.com
# pull image from hub
docker image pull joinsunsoft/docker.ui

# start container with image, and publish 8999 port to your port
docker container run --rm --name docker.ui -v /var/run/docker.sock:/var/run/docker.sock -p 8999:8999 joinsunsoft/docker.ui

Visit the browser tool
Now, you can visit like as http://hostname:8999
Default Username/Password ginghan/123456
Enjoy it now.

1.3 界面展示

登录界面:

在这里插入图片描述
首页:

在这里插入图片描述

镜像管理:

在这里插入图片描述

1.4 总结

  • 开源且安装简单
  • 中文界面交互友好
  • 可执行的操作全面

2.Shipyard

2.1 简介

Docker Swarm 是 Docker 的集群管理工具。Shipyard基于Docker Swarm而创建,能够管理Docker资源,包括容器、镜像、私有仓库等。
Shipyard与其他管理应用程序的不同之处在于具有可组合性,并与Docker远程API 完全兼容。Shipyard管理集群范围内的容器、镜像、节点、私有仓库,并提供身份验证和基于角色的访问控制。

  • 用户界面

Shipyard提供便于Docker集群管理的用户界面。它可以管理容器、集群镜像、私有仓库、身份验证等。

  • API

Shipyard的核心是API,其Web操作页面最终均使用API实现所有功能。通过使用服务密钥,可以直接与API交互来管理Docker Swarm集群并构建定制集成。

  • Database

RethinkDB用于存储帐户、引擎、服务密钥和元数据信息。它不用于存储关于Docker容器或镜像的任何信息。/data目录作为卷公开。

https://shipyard-project.com/manual-deployment/

2.2 安装

2.2.1 Datastore

As mentioned, Shipyard uses RethinkDB for the datastore. First we will launch a RethinkDB container.

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

2.2.2 Discovery

To enable Swarm leader election, we must use an external key value store from the Swarm container. For this example, we will use etcd however, you can use any key/value backend supported by Swarm.

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

2.2.3 Proxy

By default, the Docker Engine only listens on a socket. We could re-configure the Engine to use TLS or you can use a proxy container. This is a very lightweight container that simply forwards requests from TCP to the Unix socket that Docker listens on.
Note: You do not need this if you are using a manual TCP / TLS configuration.

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

2.2.4 Swarm Manager

This will run a Swarm container configured to manage.

# 格式
docker run \
    -ti \
    -d \
    --restart=always \
    --name shipyard-swarm-manager \
    swarm:latest \
    manage --host tcp://0.0.0.0:3375 etcd://<IP-OF-HOST>:4001

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

2.2.5 Swarm Agent

官网的坑:

在这里插入图片描述

This will run a Swarm container configured to manage.

# 格式
docker run \
    -ti \
    -d \
    --name shipyard-swarm-agent docker.io/swarm join \
    --addr [IP-OF-HOST]:[LOCAL-DOCKER-PORT] etcd://[IP-OF-ETCD-HOST]:4001

# 实例
docker run \
    -ti \
    -d \
    --name shipyard-swarm-agent swarm join \
    --addr 172.17.0.8:2375 etcd://172.17.0.8:4001

2.2.6 Controller

This runs the Shipyard Controller.

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

Once the controller is launched and the controller has initialized the datastore you should be able to login via http://[ip-of-host]:8080. User:admin Password:shipyard

2.3 界面展示

登录:

在这里插入图片描述
容器管理:

在这里插入图片描述

2.4 总结

  • 安装步骤较多
  • 英文界面不算友好
  • 官网有坑
评论 24
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yuanzhengme.

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值