Skip to content

[RFC] Add "docker service rollback" subcommand #142

@thaJeztah

Description

@thaJeztah

docker 1.13 added a --rollback flag to docker service update (moby/moby#26421) to allow manually rolling back a service to a previous version.

This flag cannot be combined with other flags on the service update subcommand, which is confusing (moby/moby#33444)

Looking at this functionality, I think this flag is essentially a subcommand "disguised" as a flag, and I suggest to add a rollback subcommand;

docker service rollback <service-name|service-id>

which would be the equivalent of

docker service update --rollback <service-name|service-id>

Given that this functionality is already present in the API, this can be implemented as a cli-only change.

ping @aaronlehmann @dnephin @tiborvass

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