完善docker构建发布脚本
This commit is contained in:
parent
5d99a08d3d
commit
901e7530e6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue