diff --git a/docs/reference.md b/docs/reference.md index 1d0b1c6..20f3e35 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -311,6 +311,7 @@ See examples of koyeb service create --help --docker-command string Set the docker CMD explicitly. To provide arguments to the command, use the --docker-args flag. --docker-entrypoint strings Docker entrypoint. To provide multiple arguments, use the --docker-entrypoint flag multiple times. --docker-private-registry-secret string Docker private registry secret + --docker-skip-verify Skip docker image verification --env strings Update service environment variables using the format KEY=VALUE, for example --env FOO=bar To use the value of a secret as an environment variable, use the following syntax: --env FOO={{secret.bar}} To delete an environment variable, prefix its name with '!', for example --env '!FOO' @@ -1455,6 +1456,7 @@ $> koyeb service create myservice --app myapp --docker nginx --port 80:tcp --docker-command string Set the docker CMD explicitly. To provide arguments to the command, use the --docker-args flag. --docker-entrypoint strings Docker entrypoint. To provide multiple arguments, use the --docker-entrypoint flag multiple times. --docker-private-registry-secret string Docker private registry secret + --docker-skip-verify Skip docker image verification --env strings Update service environment variables using the format KEY=VALUE, for example --env FOO=bar To use the value of a secret as an environment variable, use the following syntax: --env FOO={{secret.bar}} To delete an environment variable, prefix its name with '!', for example --env '!FOO' @@ -1939,6 +1941,7 @@ $> koyeb service update myapp/myservice --port 80:tcp --route '!/' --docker-command string Set the docker CMD explicitly. To provide arguments to the command, use the --docker-args flag. --docker-entrypoint strings Docker entrypoint. To provide multiple arguments, use the --docker-entrypoint flag multiple times. --docker-private-registry-secret string Docker private registry secret + --docker-skip-verify Skip docker image verification --env strings Update service environment variables using the format KEY=VALUE, for example --env FOO=bar To use the value of a secret as an environment variable, use the following syntax: --env FOO={{secret.bar}} To delete an environment variable, prefix its name with '!', for example --env '!FOO' diff --git a/pkg/koyeb/services.go b/pkg/koyeb/services.go index f40f845..57330c0 100644 --- a/pkg/koyeb/services.go +++ b/pkg/koyeb/services.go @@ -599,7 +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.Bool("docker-skip-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.") @@ -1605,7 +1605,7 @@ func (h *ServiceHandler) parseDockerSource(ctx *CLIContext, flags *pflag.FlagSet if flags.Lookup("docker").Changed { image, _ := flags.GetString("docker") source.SetImage(image) - skipVerify, _ := flags.GetBool("skip-docker-verify") + skipVerify, _ := flags.GetBool("docker-skip-verify") if !skipVerify { if err := h.checkDockerImage(ctx, source); err != nil { return nil, err