【发布时间】:2018-10-15 07:47:03
【问题描述】:
我想使用 Go SDK 扩展服务的副本数量。
这是(我认为)完成此功能的功能:
func (cli *Client) ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options types.ServiceUpdateOptions) (types.ServiceUpdateResponse, error)
然而,每当我运行它时,我都会收到一个错误:
Error response from daemon: rpc error: code = Unknown desc = update out of sequence
我很确定这是因为the update sequence is out of order 和版本号。用于订购这个。
但我不知道如何找到正确的版本索引!
【问题讨论】:
标签: docker containers scale docker-swarm