diff --git a/pkg/koyeb/services.go b/pkg/koyeb/services.go index 03578e0..f40f845 100644 --- a/pkg/koyeb/services.go +++ b/pkg/koyeb/services.go @@ -599,6 +599,7 @@ func (h *ServiceHandler) addServiceDefinitionFlagsForGitSource(flags *pflag.Flag func (h *ServiceHandler) addServiceDefinitionFlagsForDockerSource(flags *pflag.FlagSet) { flags.String("docker", "", "Docker image") flags.String("docker-private-registry-secret", "", "Docker private registry secret") + flags.Bool("skip-docker-verify", false, "Skip docker image verification") flags.StringSlice("docker-entrypoint", []string{}, "Docker entrypoint. To provide multiple arguments, use the --docker-entrypoint flag multiple times.") flags.String("docker-command", "", "Set the docker CMD explicitly. To provide arguments to the command, use the --docker-args flag.") flags.StringSlice("docker-args", []string{}, "Set arguments to the docker command. To provide multiple arguments, use the --docker-args flag multiple times.") @@ -1604,8 +1605,11 @@ func (h *ServiceHandler) parseDockerSource(ctx *CLIContext, flags *pflag.FlagSet if flags.Lookup("docker").Changed { image, _ := flags.GetString("docker") source.SetImage(image) - if err := h.checkDockerImage(ctx, source); err != nil { - return nil, err + skipVerify, _ := flags.GetBool("skip-docker-verify") + if !skipVerify { + if err := h.checkDockerImage(ctx, source); err != nil { + return nil, err + } } } if flags.Lookup("docker-args").Changed {