docs: document insecure registry setup
This commit is contained in:
@@ -41,6 +41,50 @@ linux/arm64
|
||||
如果 Gitea 容器仓库使用 HTTP 而不是 HTTPS,飞牛设备还需要把该地址加入 Docker
|
||||
`insecure-registries`,否则 `docker compose pull` 会失败。
|
||||
|
||||
错误示例:
|
||||
|
||||
```text
|
||||
Get "https://45.207.223.190:10082/v2/": http: server gave HTTP response to HTTPS client
|
||||
```
|
||||
|
||||
飞牛设备处理方式:
|
||||
|
||||
1. 编辑 Docker 配置:
|
||||
|
||||
```bash
|
||||
sudo vi /etc/docker/daemon.json
|
||||
```
|
||||
|
||||
2. 如果文件为空,写入:
|
||||
|
||||
```json
|
||||
{
|
||||
"insecure-registries": [
|
||||
"45.207.223.190:10082"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
如果已有 `daemon.json`,只合并 `insecure-registries` 字段,不要删除已有配置。
|
||||
|
||||
3. 重启 Docker 并验证:
|
||||
|
||||
```bash
|
||||
sudo systemctl restart docker
|
||||
docker pull 45.207.223.190:10082/mrlee/havline:1.9.0
|
||||
```
|
||||
|
||||
4. 如果 Gitea 仓库不是公开可拉取,先登录:
|
||||
|
||||
```bash
|
||||
docker login 45.207.223.190:10082
|
||||
```
|
||||
|
||||
5. 拉取成功后重新安装 `havline-1.9.0.fpk`。
|
||||
|
||||
正式发布建议:给 Gitea 容器仓库配置 HTTPS,并使用域名或 HTTPS 端口作为镜像地址。
|
||||
这样用户可以安装应用,而不需要修改 Docker daemon 配置。
|
||||
|
||||
## 打包
|
||||
|
||||
Windows PowerShell:
|
||||
|
||||
Reference in New Issue
Block a user