Преглед на файлове

Add error message for aws context

Signed-off-by: aiordache <[email protected]>
aiordache преди 5 години
родител
ревизия
6657dd2774
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      cli/cmd/compose/compose.go

+ 4 - 0
cli/cmd/compose/compose.go

@@ -82,6 +82,10 @@ func checkComposeSupport(ctx context.Context) error {
 		if err != nil {
 			return err
 		}
+		if cc.Type() == store.AwsContextType {
+			return errors.Errorf(`%q context type has been renamed. Recreate the context by running: 
+$ docker context create %s <name>`, cc.Type(), store.EcsContextType)
+		}
 		return errors.Wrapf(errdefs.ErrNotImplemented, "compose command not supported on context type %q", cc.Type())
 	}
 	return err