containers/docker/TestJcmd.java skipped GID xxx already exists

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 17, 27
    • Component/s: client-libs
    • Environment:
    • x86_64
    • linux

      Test containers/docker/TestJcmd.java report skipped, the test log shows below:

      Step 1/8 : FROM jdk-build:11
       ---> d74e4bebc2d2
      Step 2/8 : COPY /jdk /jdk
       ---> f491e29582df
      Step 3/8 : ENV LANG=C.UTF-8
       ---> Running in 4de6558ef943
       ---> Removed intermediate container 4de6558ef943
       ---> 488544042822
      Step 4/8 : ENV JAVA_HOME=/jdk
       ---> Running in decd3a84e062
       ---> Removed intermediate container decd3a84e062
       ---> 5fd5c73c5725
      Step 5/8 : RUN groupadd --gid 998 yansendao
       ---> Running in ad5b2ad062a6
      groupadd: GID '998' already exists
      ];
       stderr: [DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
                  Install the buildx component to build images with BuildKit:
                  https://docs.docker.com/go/buildx/

      The command '/bin/sh -c groupadd --gid 998 yansendao' returned a non-zero code: 4
      ]
       exitValue = 4

      jtreg.SkippedException: Building docker image failed. Details:
      Expected to get exit value of [0], exit value is: [4]
              at jdk.test.lib.containers.docker.DockerTestUtils.buildImage(DockerTestUtils.java:228)
              at jdk.test.lib.containers.docker.DockerTestUtils.buildJdkContainerImage(DockerTestUtils.java:208)
              at TestJcmd.main(TestJcmd.java:77)

            Assignee:
            Sendao Yan
            Reporter:
            Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: