From c24a4ec4cdabf88e72ecf6b4a84140b50b88b44d Mon Sep 17 00:00:00 2001 From: H Vs Date: Mon, 24 Feb 2025 14:21:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai-ops-wx_run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ai-ops-wx_run.sh b/ai-ops-wx_run.sh index a396491..27c647d 100644 --- a/ai-ops-wx_run.sh +++ b/ai-ops-wx_run.sh @@ -10,7 +10,7 @@ if [[ ${environment} == 'production' ]]; then #docker login --username=telpo_linwl@1111649216405698 --password=telpo#1234 registry.cn-shanghai.aliyuncs.com docker login --username=rzl_wangjx@1111649216405698 --password=telpo.123 registry.cn-shanghai.aliyuncs.com docker pull registry.cn-shanghai.aliyuncs.com/ssjl/ai-ops-wechat:$version - docker run --network=host -d -v /home/data/ai-ops-wx/log:/app/logs --restart=always --name ai-ops-wx registry.cn-shanghai.aliyuncs.com/ssjl/ai-ops-wechat:$version --environment=production; + docker run -p 6560:5000 -d -v /home/data/ai-ops-wx/logs:/app/logs --restart=always --name ai-ops-wx registry.cn-shanghai.aliyuncs.com/ssjl/ai-ops-wechat:$version --environment=production; #删除产生的None镜像 docker rmi -f $(docker images | grep none | awk '{print $3}') docker ps -a @@ -21,7 +21,7 @@ elif [[ ${environment} == 'test' || ${environment} == 'presure' ]]; then docker rm ai-ops-wx || true docker rmi -f $(docker images | grep 139.224.254.18:5000/ssjl/ai-ops-wechat | awk '{print $3}') docker pull 139.224.254.18:5000/ssjl/ai-ops-wechat:$version - docker run --network=host -d -v /home/data/ai-ops-wx/log:/app/logs --restart=always --name ai-ops-wx 139.224.254.18:5000/ssjl/ai-ops-wechat:$version --environment=${environment}; + docker run -p 6560:5000 -d -v /home/data/ai-ops-wx/logs:/app/logs --restart=always --name ai-ops-wx 139.224.254.18:5000/ssjl/ai-ops-wechat:$version --environment=${environment}; #删除产生的None镜像 docker rmi -f $(docker images | grep none | awk '{print $3}') docker ps -a