#!/bin/bash DATE=`date +%Y%m%d%H%M` NAME=test-hxsl-shop cd ../yami-shop-multishop && docker build -t hxsl/${NAME}:$DATE -f Dockerfile-test . #docker部署方式 #docker push visit/${NAME}:$DATE docker stop ${NAME} docker rm ${NAME} docker run -it -m 4000MB --dns 8.8.8.8 --dns 8.8.4.4 --name=${NAME} -v /root/logs:/application/logs -p 10191:8087 -d --restart=always hxsl/${NAME}:$DATE #k8s部署方式 #kubectl set image deployment/${NAME} ${NAME}=youzan.com/vote-saas/${NAME}:$DATE -n vote-server