Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions pkg/koyeb/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down Expand Up @@ -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
Expand Down
Loading