docs: 更新 README.md 中的镜像地址和相关说明,适配 nas 标签

This commit is contained in:
yolokk 2025-03-11 16:06:45 +08:00 committed by cnb
parent eb48e043b4
commit 580629a2fe

View File

@ -1,20 +1,20 @@
> 此 Docker 镜像由宝塔面板官方发布,镜像版本为宝塔面板 9.3.0 正式版和 9.0.0_lts 稳定版,镜像会随着宝塔面板更新,目前支持`x86_64``arm64`架构。 > 此 Docker 镜像由宝塔面板官方发布,镜像版本为宝塔面板 9.3.0 正式版和 9.0.0_lts 稳定版,镜像会随着宝塔面板更新,目前支持`x86_64``arm64`架构。
![badge](https://cnb.cool/btpanel/btpanel/-/badge/git/latest/ci/git-clone-yyds) ![badge](https://cnb.cool/btpanel/btpanel/-/badge/git/nas/ci/git-clone-yyds)
![badge](https://cnb.cool/btpanel/btpanel/-/badge/git/latest/ci/pipeline-as-code) ![badge](https://cnb.cool/btpanel/btpanel/-/badge/git/nas/ci/pipeline-as-code)
![badge](https://cnb.cool/btpanel/btpanel/-/badge/git/latest/ci/status/push) ![badge](https://cnb.cool/btpanel/btpanel/-/badge/git/nas/ci/status/push)
## 使用方法 ## 使用方法
> 以下命令中的镜像默认使用 CNB 仓库镜像,如需直接从 DockerHub 拉取,请替换镜像地址,如将`docker.cnb.cool/btpanel/btpanel:latest`替换为`btpanel:baota:latest` > 以下命令中的镜像默认使用 CNB 仓库镜像,如需直接从 DockerHub 拉取,请替换镜像地址,如将`docker.cnb.cool/btpanel/btpanel:nas`替换为`btpanel:baota:nas`
### Docker Run ### Docker Run
- 复制下方的命令无需映射端口使用本地网络直接部署宝塔面板docker镜像 - 复制下方的命令无需映射端口使用本地网络直接部署宝塔面板docker镜像
```bash ```bash
docker run -d --restart unless-stopped --name baota --net=host -v ~/website_data:/www/wwwroot -v ~/mysql_data:/www/server/data -v /vhost:/www/server/panel/vhost docker.cnb.cool/btpanel/btpanel:latest docker run -d --restart unless-stopped --name baota --net=host -v ~/website_data:/www/wwwroot -v ~/mysql_data:/www/server/data -v /vhost:/www/server/panel/vhost docker.cnb.cool/btpanel/btpanel:nas
``` ```
- 复制下方的命令映射指定端口部署宝塔面板docker镜像 - 复制下方的命令映射指定端口部署宝塔面板docker镜像
```bash ```bash
docker run -d --restart unless-stopped --name baota -p 8888:8888 -p 22:22 -p 443:443 -p 80:80 -p 888:888 -v ~/website_data:/www/wwwroot -v ~/mysql_data:/www/server/data -v ~/vhost:/www/server/panel/vhost docker.cnb.cool/btpanel/btpanel:latest docker run -d --restart unless-stopped --name baota -p 8888:8888 -p 22:22 -p 443:443 -p 80:80 -p 888:888 -v ~/website_data:/www/wwwroot -v ~/mysql_data:/www/server/data -v ~/vhost:/www/server/panel/vhost docker.cnb.cool/btpanel/btpanel:nas
``` ```
- 复制下方的命令映射指定端口部署宝塔面板docker镜像并挂载整个`www`目录到宿主机,当前仅适用于`nas`标签 - 复制下方的命令映射指定端口部署宝塔面板docker镜像并挂载整个`www`目录到宿主机,当前仅适用于`nas`标签
```bash ```bash
@ -25,7 +25,7 @@ docker run -d --restart unless-stopped --name baota -p 8888:8888 -p 22:22 -p 443
```yml ```yml
services: services:
btpanel: btpanel:
image: docker.cnb.cool/btpanel/btpanel:latest # 宝塔面板官方镜像国内源也可直接使用dockerhub镜像 btpanel/baota:latest image: docker.cnb.cool/btpanel/btpanel:nas # 宝塔面板官方镜像国内源也可直接使用dockerhub镜像 btpanel/baota:nas
deploy: deploy:
resources: resources:
limits: limits:
@ -56,7 +56,7 @@ services:
## 镜像说明 ## 镜像说明
除标注了`9.0_lts`稳定版的标签外,其他镜像均为`9.3.0/9.2.0`正式版 除标注了`9.0_lts`稳定版的标签外,其他镜像均为`9.3.0/9.2.0`正式版
- `latest`:基于`Debian12`镜像打包,安装了宝塔面板和后续安装环境所用的依赖。 - `nas`:基于`Debian12`镜像打包,安装了宝塔面板和后续安装环境所用的依赖。
- `nas`:基于`Debian12`镜像打包,安装了宝塔面板和`Nginx 1.27`(amd架构)或`Nginx openresty`(arm64架构) - `nas`:基于`Debian12`镜像打包,安装了宝塔面板和`Nginx 1.27`(amd架构)或`Nginx openresty`(arm64架构)
- `9.0_lts_fresh`:基于`Debian12`镜像打包,安装了宝塔面板稳定版。 - `9.0_lts_fresh`:基于`Debian12`镜像打包,安装了宝塔面板稳定版。
- `9.0_lts_lib`:基于`Debian12`镜像打包,安装了宝塔面板稳定版和和后续安装环境所用的依赖。 - `9.0_lts_lib`:基于`Debian12`镜像打包,安装了宝塔面板稳定版和和后续安装环境所用的依赖。