Merge pull request #144 from thaJeztah/allow-some-flags-during-rollback

Allow --detach and --quiet flags when using --rollback
This commit is contained in:
Daniel Nephin 2017-06-01 14:47:08 -04:00 committed by GitHub
commit 30af87981d
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ func runUpdate(dockerCli *command.DockerCli, flags *pflag.FlagSet, options *serv
// Rollback can't be combined with other flags.
otherFlagsPassed := false
flags.VisitAll(func(f *pflag.Flag) {
if f.Name == "rollback" {
if f.Name == "rollback" || f.Name == "detach" || f.Name == "quiet" {
return
}
if flags.Changed(f.Name) {