怎么部署这里不再讲解描述
- 查看service列表
sudo docker service ls
- 停止service
sudo docker service scale serviceName=0
- 删除service
sudo docker service rm serviceName
- 启动service
sudo docker service scale serviceName=1
- 查看日志
sudo docker service logs serviceId
- 更改镜像
docker service update --image xiaopeng163/python-flask-demo:2.0 serviceName
- 更改端口
docker service update --publish-rm 8090:5000 --publish-add 8091:5000 serviceName