### # @Description: # @Version: 1.0 # @Autor: lishengyin # @Date: 2022-02-22 10:55:34 # @LastEditors: lishengyin # @LastEditTime: 2022-02-22 14:02:04 ### #!/bin/bash version=`cat VERSION` if [ -z "$version" ]; then echo "版本号为空" exit fi docker stop mivaDev mivadbDev # 提交开发环境 docker commit mivaDev mivainfer:$version docker commit mivadbDev mivadb:$version # 清除原先的实例 docker rm mivaDev mivadbDev docker rmi mivainfer:dev docker rmi mivadb:dev docker tag mivainfer:$version mivainfer:dev docker tag mivadb:$version mivadb:dev docker rmi mivainfer:$version docker rmi mivadb:$version ./build.sh