mirror of https://github.com/docker/compose.git
Add error message for aws context
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
44b2b8b21d
commit
6657dd2774
|
@ -82,6 +82,10 @@ func checkComposeSupport(ctx context.Context) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
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 errors.Wrapf(errdefs.ErrNotImplemented, "compose command not supported on context type %q", cc.Type())
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue