1 Star 0 Fork 198

hayden/lin-cms-dotnetcore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
run.sh 1011 Bytes
一键复制 编辑 原始数据 按行查看 历史
SERVER_NAME=lincms-web
#判断是否存在webnotebook容器
docker ps | grep lincms-web &> /dev/null
#如果不存在,则Remove
if [ $? -ne 0 ]
then
echo "${SERVER_NAME} container not exist continue.. "
else
echo "remove ${SERVER_NAME} container"
docker rm ${SERVER_NAME} -f
fi
docker images | grep registry.cn-hangzhou.aliyuncs.com/igeekfan/${SERVER_NAME} &> /dev/null
if [ $? -ne 0 ]
then
echo "image does not exist , continue..."
else
echo "image exists !!! remove it"
docker rmi --force registry.cn-hangzhou.aliyuncs.com/igeekfan/${SERVER_NAME}
fi
#从阿里云拉取刚刚push的镜像
docker pull registry.cn-hangzhou.aliyuncs.com/igeekfan/${SERVER_NAME}
sudo docker run --restart \
unless-stopped \
-p 5011:8080 \
-v /var/www/lin-cms-dotnetcore/wwwroot/:/app/wwwroot:rw \
-v /var/www/lin-cms-dotnetcore/appsettings.Production.json/:/app/appsettings.Production.json:rw \
--privileged=true \
--name ${SERVER_NAME} \
-d registry.cn-hangzhou.aliyuncs.com/igeekfan/${SERVER_NAME}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/haydenlong/lin-cms-dotnetcore.git
git@gitee.com:haydenlong/lin-cms-dotnetcore.git
haydenlong
lin-cms-dotnetcore
lin-cms-dotnetcore
master

搜索帮助