云原生之部署docker管理工具DockerUI

2023-11-14 17:16:47 浏览数 (2)

一、DockerUI介绍

DockerUI 是一个与远程 API 交互的 Web 界面。目标是提供一个纯客户端实现,以便轻松连接和管理 docker。该项目尚未完成,仍在大力开发中。

二、检查本地docker环境

1.检查系统版本

代码语言:shell复制
[root@docker ~]# cat /etc/os-release 
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

2.检查docker状态

代码语言:shell复制
[root@docker ~]# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2022-10-24 14:10:39 CST; 5h 16min ago
     Docs: https://docs.docker.com
 Main PID: 9426 (dockerd)
    Tasks: 28
   Memory: 1.2G
   CGroup: /system.slice/docker.service

三、拉取DockerUI镜像

代码语言:shell复制
[root@docker ~]# docker pull abh1nav/dockerui:latest
latest: Pulling from abh1nav/dockerui
Image docker.io/abh1nav/dockerui:latest uses outdated schema1 manifest format. Please upgrade to a schema2 image for better future compatibility. More information at https://docs.docker.com/registry/spec/deprecated-schema-v1/
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
docker.io/abh1nav/dockerui:latest

四、创建DockerUI容器

1.运行DockerUI容器

代码语言:shell复制
docker run -d -p 9000:9000 -v /var/run/docker.sock:/docker.sock 
--name dockerui abh1nav/dockerui:latest -e="/docker.sock"

2.检查DockerUI容器状态

代码语言:shell复制
[root@docker ~]# docker ps
CONTAINER ID   IMAGE                     COMMAND                  CREATED             STATUS             PORTS                                       NAMES
6badb426f39a   abh1nav/dockerui:latest   "./dockerui -e=/dock…"   32 seconds ago      Up 32 seconds      0.0.0.0:9000->9000/tcp, :::9000->9000/tcp   dockerui

五、访问DockerUI

image.pngimage.png

六、DockerUI的基本使用

1.查询宿主机容器情况

image.pngimage.png

2.查询docker镜像列表

image.pngimage.png

3.查看容器配置信息

image.pngimage.png

我正在参与2023腾讯技术创作特训营第三期有奖征文,组队打卡瓜分大奖!

0 人点赞