# 116服务器上,iserver三个月许可到期更新脚本(全部复制到终端一次性执行即可):
name=iserver1
port=8090
container_id=`docker ps -f name=${name} -q`
echo "==>查询到${name}容器id:${container_id}"
echo "==>停止容器:${container_id}"
docker stop ${container_id}
echo "==>删除容器:${container_id}"
docker rm ${container_id}
echo "==>重新run容器:${name}"
docker run --restart=always --name ${name} -d -p ${port}:8090 -v /opt/${name}:/opt/iserverOPTs supermap/iserver:912
echo "==>${name}更新完毕!访问:http://xxx:${port}/iserver 重新配置许可!管理员账/密:xxx/xxx"
网友评论