diff --git a/src/main/java/org/jenkinsci/plugins/docker/workflow/client/DockerClient.java b/src/main/java/org/jenkinsci/plugins/docker/workflow/client/DockerClient.java index 22e54d047..34dbfa1ae 100644 --- a/src/main/java/org/jenkinsci/plugins/docker/workflow/client/DockerClient.java +++ b/src/main/java/org/jenkinsci/plugins/docker/workflow/client/DockerClient.java @@ -248,7 +248,7 @@ public void rm(@Nonnull EnvVars launchEnv, @Nonnull String containerId) throws I * otherwise {@code null}. */ public @CheckForNull VersionNumber version() throws IOException, InterruptedException { - LaunchResult result = launch(new EnvVars(), true, "-v"); + LaunchResult result = launch(new EnvVars(), true, "--version"); if (result.getStatus() == 0) { return parseVersionNumber(result.getOut()); } else {