项目部署到服务器需要做什么,项目部署到服务器。

一、先构建需要部署的项目

b08cb2244d43

image.png

二、找到对应项目,复制pull更新命令(更新镜像)

b08cb2244d43

image.png

三、在Xshellell中输入pull命令

[root@test28-nginx ~]# docker pull userdev.p.wondersrnd.com:10099/bot/bot-boss:latest

latest: Pulling from bot/bot-boss

f25d82609194: Already exists

529f30ff461e: Already exists

cbd7ba5c7809: Pull complete

3132e07b1c38: Pull complete

891617e8414d: Pull complete

Digest: sha256:b8b278c1121c425eea1cb8c1c7eaa9ff3f50e5465f12358cd98f7b6dcac5dcbd

Status: Downloaded newer image for userdev.p.wondersrnd.com:10099/bot/bot-boss:latest

四、移除老容器

[root@test28-nginx ~]# docker rm -f bot-boss

bot-boss

五、运行新镜像

[root@test28-nginx ~]# docker run -p 8086:8086 -d --name=bot-boss --restart=always userdev.p.wondersrnd.com:10099/bot/bot-boss

65779a3489ce3c4ea5d5bf0c65f63a90ae4fd271253bc680b7c3af698685b4a0

完成。

//查看日志

docker logs -f bot-boss

//显示文件

docker ps

//移除容器

docker rm -f bot-tenant-boss

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值