瀏覽代碼

多端口开放

tags/v1.0.0^2
林万龙 3 年之前
父節點
當前提交
678cfbd35d
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. +1
    -1
      dipper_position_run.sh
  2. +1
    -2
      setup_test.sh

+ 1
- 1
dipper_position_run.sh 查看文件

@@ -21,7 +21,7 @@ if [[ ${environment} == 'test' ]]; then

docker rmi -f $(docker images | grep 139.224.254.18:5000/dipperposition_service | awk '{print $3}')
docker pull 139.224.254.18:5000/dipperposition_service:$version
docker run -v /home/data/dipperposition/log:/var/log/dipperposition -e active=test --restart=always -d --network host -p 8105:8105 -p 9011:9011 -p 9012:9012 -p 9013:9013 --name dipperposition_service 139.224.254.18:5000/dipperposition_service:$version
docker run -v /home/data/dipperposition/log:/var/log/dipperposition -e active=test --restart=always -d --network host -p 9011:9011 --name dipperposition_service 139.224.254.18:5000/dipperposition_service:$version

#删除产生的None镜像
docker rmi -f $(docker images | grep none | awk '{print $3}')


+ 1
- 2
setup_test.sh 查看文件

@@ -22,7 +22,6 @@ docker rmi -f $(docker images | grep none | awk '{print $3}')
# 查看镜像列表
docker images
# 启动容器
docker run -v /home/data/dipperposition/log:/var/log/dipperposition -d -e active=test --network host --restart=always -p 9011:9011 -p 9012:9012 -p 9013:9013 --name dipperposition_service 139.224.254
.18:5000/dipperposition_service:$image_version
docker run -v /home/data/dipperposition/log:/var/log/dipperposition -d -e active=test --network host --restart=always -p 9011:9011 --name dipperposition_service 139.224.254.18:5000/dipperposition_service:$image_version
# 查看日志
# docker logs dipperposition_service

Loading…
取消
儲存