https://github.com/skye-z/harbor
Lightweight Local Docker Management
https://github.com/skye-z/harbor
docker docker-ui
Last synced: 11 months ago
JSON representation
Lightweight Local Docker Management
- Host: GitHub
- URL: https://github.com/skye-z/harbor
- Owner: skye-z
- License: agpl-3.0
- Created: 2023-12-13T09:31:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-24T05:46:45.000Z (almost 2 years ago)
- Last Synced: 2025-06-10T17:08:54.162Z (about 1 year ago)
- Topics: docker, docker-ui
- Language: Go
- Homepage: https://skye-z.github.io/harbor/
- Size: 456 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Harbor - 轻量级本地Docker管理平台
[](https://github.com/skye-z/harbor/security/code-scanning)
[](https://sonarcloud.io/summary/new_code?id=skye-z_harbor)
[](https://sonarcloud.io/summary/new_code?id=skye-z_harbor)
[](https://sonarcloud.io/summary/new_code?id=skye-z_harbor)
[](https://sonarcloud.io/summary/new_code?id=skye-z_harbor)
[](https://sonarcloud.io/summary/new_code?id=skye-z_harbor)
[](https://sonarcloud.io/summary/new_code?id=skye-z_harbor)
Harbor 是一个轻量级的本地 Docker 管理平台, 加快了单机服务的交付速度, 简化后续的运维工作.
## 功能
* 引擎: 查看引擎信息、监听引擎守护线程事件
* 容器: 容器启停控制、日志查看、Web终端、资源统计、端口快捷跳转
* 镜像: 构建信息查看、镜像拉取与删除
* 网络: 网络创建编辑、容器接入
* 存储卷: 创建编辑与删除
* 监控: 引擎下线、容器启停、突发负载、资源耗尽等监控
* 用户: 账号密码登陆、OAuth2登陆
## 特性
* 体积小: 程序本体小于 30 MB
* 部署快: 提供一键脚本快速部署
* 开销低: 内存占用仅 ≈ 30 MB
## 安装
请复制下方命令到服务器终端中执行, 脚本提供了 Harbor 的安装、卸载与开启自启设置服务
```shell
bash -c "$(curl -fsSL https://skye-z.github.io/harbor/install.sh)"
```
安装完成后将会自动运行, 首次运行 Harbor 会自动生成管理账户, 密码将输出在日志中, 如下所示:
```log
2024/01/01 00:00:00 [Tips] create default admin, password is ..........
```
## 控制
```shell
# 启动 Harbor
systemctl start harbor
# 停止 Harbor
systemctl stop harbor
# 查看 Harbor 状态与日志
systemctl status harbor
```
## 构建
```shell
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o harbor -ldflags '-s -w'
```