Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8360533

ContainerRuntimeVersionTestUtils fromVersionString fails with some docker versions

XMLWordPrintable

    • master
    • generic
    • linux

      On Linux ppc64le RHEL 8, we have such a docker version :
      docker --version
      Docker version v25.0.3, build 4debf41

      Unfortunately, the leading 'v' is not expected in ContainerRuntimeVersionTestUtils fromVersionString so we get an exception.

      Probably we should simply skip the leading 'v' .
      Also the appended build info has to be considered.

      Example :
      TEST: jdk/internal/platform/docker/TestDockerMemoryMetricsSubgroup.java
      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Failed to parse container runtime version: Docker version v25.0.3, build 4debf41

            mbaesken Matthias Baesken
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: