|
@@ -189,6 +189,9 @@ func validateFlags(up *upOptions, create *createOptions) error {
|
|
|
if up.Detach && (up.attachDependencies || up.cascadeStop || up.cascadeFail || len(up.attach) > 0 || up.watch) {
|
|
|
return fmt.Errorf("--detach cannot be combined with --abort-on-container-exit, --abort-on-container-failure, --attach, --attach-dependencies or --watch")
|
|
|
}
|
|
|
+ if create.noInherit && create.noRecreate {
|
|
|
+ return fmt.Errorf("--no-recreate and --renew-anon-volumes are incompatible")
|
|
|
+ }
|
|
|
if create.forceRecreate && create.noRecreate {
|
|
|
return fmt.Errorf("--force-recreate and --no-recreate are incompatible")
|
|
|
}
|