Skip to content

Include an "order" key in the "update_config" #346

@akalipetis

Description

@akalipetis

When updating a Docker service, the following option exists:

      --update-order string                Update order ("start-first"|"stop-first")

This can be used to create rolling update deployments, even if a service has just one replica.

I propose adding the following key to the Docker Compose spec, which will allow for these updates to work with docker deploy -c ....

    deploy:
      replicas: 1
      update_config:
        parallelism: 1
        order: start-first | stop-first

I would be happy to contribute the needed code if that's something we'd like to have in the spec.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions