https://github.com/xusenlin/docker-ui
在当前容器里查看和操作全部容器
https://github.com/xusenlin/docker-ui
Last synced: 7 days ago
JSON representation
在当前容器里查看和操作全部容器
- Host: GitHub
- URL: https://github.com/xusenlin/docker-ui
- Owner: xusenlin
- License: mit
- Created: 2026-04-10T06:55:40.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-04T17:18:55.000Z (about 1 month ago)
- Last Synced: 2026-05-04T19:27:56.083Z (about 1 month ago)
- Language: Go
- Size: 683 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-ui
一个简单的 Docker Web 管理界面,支持管理容器和镜像。
⚠️ 本服务以 root 权限操作 Docker,请勿无认证暴露公网
## 功能
- **容器管理**:查看列表、查看详情、启停操作
- **镜像更新**:拉取最新镜像并重建容器,实时显示进度
- **镜像管理**:查看本地镜像
- **认证**:简单的用户密码认证
## 截图
### 容器管理

### 镜像管理

### 容器详情 - 更新按钮

### 容器详情 - 自身容器不可更新

### 镜像已是最新

### 更新失败

## 快速开始
```bash
# 构建镜像
make build
# 运行容器
make run
# 访问 http://localhost:8080
```
## 配置
通过环境变量配置:
| 变量 | 默认值 | 说明 |
|------|--------|------|
| AUTH_USER | admin | 用户名 |
| AUTH_PASS | password | 密码 |
| LISTEN_ADDR | :8080 | 监听地址 |
## 技术栈
- Go (标准库 http)
- Docker API (docker.sock)
- HTML/CSS (服务端渲染)
## 项目结构
```
cmd/server/ # 程序入口
internal/
docker/ # Docker API 封装
handler/ # HTTP 处理器
middleware/ # 中间件 (认证)
model/ # 数据模型
config/ # 配置加载
```
## 构建 Docker 镜像
```bash
make build IMG=your-registry/docker-ui:tag
make push IMG=your-registry/docker-ui:tag
```