From 6657dd27742b8f12e89f3717aa009db6d3dd592b Mon Sep 17 00:00:00 2001 From: aiordache Date: Wed, 19 Aug 2020 18:22:07 +0200 Subject: [PATCH] Add error message for aws context Signed-off-by: aiordache --- cli/cmd/compose/compose.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/cmd/compose/compose.go b/cli/cmd/compose/compose.go index 49a7840cc..8acb5d3f7 100644 --- a/cli/cmd/compose/compose.go +++ b/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 `, cc.Type(), store.EcsContextType) + } return errors.Wrapf(errdefs.ErrNotImplemented, "compose command not supported on context type %q", cc.Type()) } return err