From 94bb09482275109bcab52a6879c525da574852df Mon Sep 17 00:00:00 2001 From: walker Date: Sun, 4 Feb 2024 17:58:14 +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, 2 insertions(+), 1 deletion(-) diff --git a/docker_build_run.sh b/docker_build_run.sh index a7bd1ef..20b4cd7 100644 --- a/docker_build_run.sh +++ b/docker_build_run.sh @@ -32,4 +32,5 @@ 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 +# 删除构建过程产生的none镜像 +docker rmi -f `docker images | grep '' | awk '{print $3}'`