如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Console 是 https://github.com/minio/minio 的图形化管理浏览器用户界面。
[!NOTE] Console 是旧版 https://github.com/minio/object-browser 的分支,仅用于我个人的教育目的,因此它包含了 MinIO® 源代码。您也可以查看其他维护中的 https://github.com/minio/object-browser/forks%E3%80%82
[!IMPORTANT] MINIO 是 MinIO Corporation 的注册商标。因此,本项目不隶属于 MinIO Corporation,也未获得其认可。
| 登录 | 指标 | 对象浏览器 |
|---|---|---|
| 性能/速度测试 | Ctrl / Strg + k |
目录
mc 创建 console 用户console 创建具有所有资源管理员访问权限的策略(用于测试)console 用户设置策略| 操作系统 | 架构 | 二进制文件 |
|---|---|---|
| Linux | amd64 | https://github.com/georgmangold/console/releases/latest/download/console-linux-amd64 |
| Linux | arm64 | https://github.com/georgmangold/console/releases/latest/download/console-linux-arm64 |
| Linux | arm | https://github.com/georgmangold/console/releases/latest/download/console-linux-arm |
| Apple | amd64 | https://github.com/georgmangold/console/releases/latest/download/console-darwin-amd64 |
| Apple | arm64 | https://github.com/georgmangold/console/releases/latest/download/console-darwin-arm64 |
| Windows | amd64 | https://github.com/georgmangold/console/releases/latest/download/console-windows-amd64.exe |
有关校验和、DEB 和 RPM 包,请访问最新的 https://github.com/georgmangold/console/releases/latest/%E3%80%82
docker pull ghcr.io/georgmangold/console
运行时将 YOUR_MINIO_SERVER_URL 替换为您自己的 MinIO Server URL:
docker run -p 127.0.0.1:9090:9090 -e CONSOLE_MINIO_SERVER=https://YOUR_MINIO_SERVER_URL ghcr.io/georgmangold/console
[!NOTE] 如果您将 MinIO Server 区域从默认的
us-east-1更改为其他区域,则还需要设置环境变量CONSOLE_MINIO_REGION=。
[!NOTE] 您需要一个正常工作的 Go 环境。因此,请遵循 如何安装 Go。
go install github.com/georgmangold/console/cmd/console@latest
有关如何构建此项目的更多信息,请参阅 DEVELOPMENT.md 和 CONTRIBUTING.md。
console 仅需要一个具有管理员权限的 MinIO 用户以及指向您的 MinIO 部署的 URL。
[!NOTE] 我们不建议使用 MinIO 的根管理员凭据。
mc 创建 console 用户mc admin user add myminio/
Enter Access Key: console
Enter Secret Key: xxxxxxxx
console 创建具有所有资源管理员访问权限的策略(用于测试)cat
> admin.json << EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": ["admin:*"],
"Effect": "Allow",
"Sid": ""
},
{
"Action": ["s3:*"],
"Effect": "Allow",
"Resource": ["arn:aws:s3:::*"],
"Sid": ""
}
]
}
EOF
[!NOTE] 此外,您可以创建策略来限制其他
console用户的权限。例如,如果希望用户仅能访问仪表板、存储桶、通知和监控页面,策略应如下所示:
> {
> "Version": "2012-10-17",
> "Statement": [
> {
> "Action": ["admin:ServerInfo"],
> "Effect": "Allow",
> "Sid": ""
> },
> {
> "Action": [
> "s3:ListenBucketNotification",
> "s3:PutBucketNotification",
> "s3:GetBucketNotification",
> "s3:ListMultipartUploadParts",
> "s3:ListBucketMultipartUploads",
> "s3:ListBucket",
> "s3:HeadBucket",
> "s3:GetObject",
> "s3:GetBucketLocation",
> "s3:AbortMultipartUpload",
> "s3:CreateBucket",
> "s3:PutObject",
> "s3:DeleteObject",
> "s3:DeleteBucket",
> "s3:PutBucketPolicy",
> "s3:DeleteBucketPolicy",
> "s3:GetBucketPolicy"
> ],
> "Effect": "Allow",
> "Resource": ["arn:aws:s3:::*"],
> "Sid": ""
> }
> ]
> }
>
console 用户设置策略mc admin policy add myminio/ console-admin admin.json
mc admin policy set myminio/ console-admin user=console
运行 console 服务前,必须提供以下环境设置:
# MinIO 端点
export CONSOLE_MINIO_SERVER=http://localhost:9000
现在启动 console 服务:
./console server
2021-01-19 02:36:08.893735 I | 2021/01/19 02:36:08 server.go:129: Serving console at http://localhost:9090
默认情况下,console 在端口 9090 上运行,您可以使用 --port 选项更改端口。
[!NOTE] 如果您将 MinIO Server 区域从默认的
us-east-1更改为其他区域,则还需要设置环境变量CONSOLE_MINIO_REGION=。
有关更多信息,请参见 文档 和 常见问题。
请遵循 console 贡献者指南。
Console 根据 GNU AGPLv3 许可证授权。
来自真实用户的反馈,见证轩辕镜像的优质服务