From 580629a2fe007e62e7429ef33f4aaab4fb01d31d Mon Sep 17 00:00:00 2001 From: yolokk Date: Tue, 11 Mar 2025 16:06:45 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20README.md=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E9=95=9C=E5=83=8F=E5=9C=B0=E5=9D=80=E5=92=8C?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E8=AF=B4=E6=98=8E=EF=BC=8C=E9=80=82=E9=85=8D?= =?UTF-8?q?=20nas=20=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 8ee6f34..387dce9 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,20 @@ > 此 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/latest/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/git-clone-yyds) +![badge](https://cnb.cool/btpanel/btpanel/-/badge/git/nas/ci/pipeline-as-code) +![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镜像 ```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镜像 ```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`标签 ```bash @@ -25,7 +25,7 @@ docker run -d --restart unless-stopped --name baota -p 8888:8888 -p 22:22 -p 443 ```yml services: btpanel: - image: docker.cnb.cool/btpanel/btpanel:latest # 宝塔面板官方镜像(国内源),也可直接使用dockerhub镜像 btpanel/baota:latest + image: docker.cnb.cool/btpanel/btpanel:nas # 宝塔面板官方镜像(国内源),也可直接使用dockerhub镜像 btpanel/baota:nas deploy: resources: limits: @@ -56,7 +56,7 @@ services: ## 镜像说明 除标注了`9.0_lts`稳定版的标签外,其他镜像均为`9.3.0/9.2.0`正式版 -- `latest`:基于`Debian12`镜像打包,安装了宝塔面板和后续安装环境所用的依赖。 +- `nas`:基于`Debian12`镜像打包,安装了宝塔面板和后续安装环境所用的依赖。 - `nas`:基于`Debian12`镜像打包,安装了宝塔面板和`Nginx 1.27`(amd架构)或`Nginx openresty`(arm64架构) - `9.0_lts_fresh`:基于`Debian12`镜像打包,安装了宝塔面板稳定版。 - `9.0_lts_lib`:基于`Debian12`镜像打包,安装了宝塔面板稳定版和和后续安装环境所用的依赖。