From 901e7530e628c4698d7e3a808623c2e08b9842ce Mon Sep 17 00:00:00 2001 From: walker Date: Sun, 4 Feb 2024 17:50:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84docker=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker_build_run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker_build_run.sh b/docker_build_run.sh index 23093b2..a7bd1ef 100644 --- a/docker_build_run.sh +++ b/docker_build_run.sh @@ -26,7 +26,10 @@ create_docker_mynet() { # 执行docker网络mynet创建 create_docker_mynet +docker rm -f bj-rtsts-server docker rmi -f bj-rtsts-server docker build --rm=true -f ./Dockerfile -t bj-rtsts-server:1.0 ./ docker run --name bj-rtsts-server --restart=always --network mynet --ip 192.168.53.191 -d -p 9091:9091 -v /usr/local/joylink/logs/bjrtsts:/logs/bjrtsts bj-rtsts-server:1.0 bj-rtsts-server -config $CONFIG + +docker image prune -a