Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.6k views
in Technique[技术] by (71.8m points)

Docker 持续部署相关

是这样的我做了小容器,里面是通过直接 git pull 来更新项目的,但是部署的时候必须使用容器的 id 去进入容器然后拉代码,这样对于自动化部署不太行因为部署代码里就必须写死容器 id,想请问 Docker 有类似别名之类的方法批量进入容器然后执行统一命令么


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

部署属于CI/CD, 对于容器来说普遍是通过k8s方式实现自动部署,每一次都是新容器, 而不是原有容器更新代码.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...