Test test/hotspot/jtreg/containers/docker/TestMemoryInvisibleParent.java fails, the test log snippet:
[COMMAND]
docker ps
[2025-11-13T07:56:04.154009465Z] Gathering output for process 3741348
[ELAPSED: 31 ms]
[STDERR]
[STDOUT]
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f522bb0f7f1d jdk-build:11 "bash" 30 hours ago Up 30 hours jdk-build-yansendao
Full child process STDOUT was saved to docker-stdout-3741348.log
[2025-11-13T07:56:04.176537901Z] Waiting for completion for process 3741348
[2025-11-13T07:56:04.176636082Z] Waiting for completion finished for process 3741348
[2025-11-13T07:56:04.178029641Z] Gathering output for process 3741360
[2025-11-13T07:56:04.178321793Z] Waiting for completion for process 3741360
[2025-11-13T07:56:04.187852969Z] Waiting for completion finished for process 3741360
docker --version returning: Docker version 26.1.4, build 5650f9b
[COMMAND]
docker info -f {{.Host.Security.Rootless}}
[2025-11-13T07:56:04.189193919Z] Gathering output for process 3741372
[ELAPSED: 15 ms]
[STDERR]
template: :1:7: executing "" at <.Host.Security.Rootless>: can't evaluate field Host in type system.dockerInfo
[STDOUT]
Full child process STDOUT was saved to docker-stdout-3741372.log
[COMMAND]
docker info -f {{.SecurityOptions}}
[2025-11-13T07:56:04.205090629Z] Gathering output for process 3741390
[ELAPSED: 15 ms]
[STDERR]
[STDOUT]
[name=seccomp,profile=builtin]
Full child process STDOUT was saved to docker-stdout-3741390.log
DockerfileConfig: using custom image name: jdk-build
DockerfileConfig: using custom image version: 11
[COMMAND]
docker build --no-cache --tag jdk-internal:test-containers-docker-TestMemoryInvisibleParent-invisible-parent jdk-internal-test-containers-docker-TestMemoryInvisibleParent-invisible-parent
[2025-11-13T07:56:04.514995107Z] Gathering output for process 3741407
[ELAPSED: 7759 ms]
[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/
[STDOUT]
Sending build context to Docker daemon 1.216GB
Step 1/4 : FROM jdk-build:11
---> bca9183be6c6
Step 2/4 : COPY /jdk /jdk
---> 0d71902abbf6
Step 3/4 : ENV JAVA_HOME=/jdk
---> Running in 1d4c80863b3c
---> Removed intermediate container 1d4c80863b3c
---> 2a65a75df232
Step 4/4 : CMD ["/bin/bash"]
---> Running in 73f049a9f286
---> Removed intermediate container 73f049a9f286
---> a4c4702c93ab
Successfully built a4c4702c93ab
Successfully tagged jdk-internal:test-containers-docker-TestMemoryInvisibleParent-invisible-parent
Full child process STDOUT was saved to docker-stdout-3741407.log
[2025-11-13T07:56:12.274000714Z] Waiting for completion for process 3741407
[2025-11-13T07:56:12.274086964Z] Waiting for completion finished for process 3741407
========== NEW TEST CASE: Cgroup V1 hidden parent memory limit: 104857600
[2025-11-13T07:56:12.277434917Z] Gathering output for process 3741424
[2025-11-13T07:56:12.277776590Z] Waiting for completion for process 3741424
[2025-11-13T07:56:12.278028522Z] Waiting for completion finished for process 3741424
[2025-11-13T07:56:12.279077669Z] Gathering output for process 3741427
[2025-11-13T07:56:12.279375561Z] Waiting for completion for process 3741427
[2025-11-13T07:56:12.279644063Z] Waiting for completion finished for process 3741427
[COMMAND]
docker rmi --force jdk-internal:test-containers-docker-TestMemoryInvisibleParent-invisible-parent
[2025-11-13T07:56:12.280602929Z] Gathering output for process 3741430
[ELAPSED: 42 ms]
[STDERR]
[STDOUT]
Untagged: jdk-internal:test-containers-docker-TestMemoryInvisibleParent-invisible-parent
Deleted: sha256:a4c4702c93abe65f58972bcc733a85c504cb8f6835a977ceeaa5fc5620b234a7
Deleted: sha256:2a65a75df232fc31b8019039c78bd29470af6c897044dc827cc34e61fe260a03
Deleted: sha256:0d71902abbf68eedaa59cbaf7ad619e78a6d96ffaeac2216896349dc98f88be8
Deleted: sha256:a753fbfdc25be2c60bac8289167727feaa6a8894047c92d0b102c8c9b95f432c
Full child process STDOUT was saved to docker-stdout-3741430.log
STDERR:
java.nio.file.AccessDeniedException: /sys/fs/cgroup/memory/hidden-parent-TestMemoryInvisibleParent26/memory.limit_in_bytes
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:108)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:113)
at java.base/sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:214)
at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:245)
at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:426)
at java.base/java.nio.file.Files.newOutputStream(Files.java:215)
at java.base/java.nio.file.Files.write(Files.java:3174)
at java.base/java.nio.file.Files.writeString(Files.java:3368)
at java.base/java.nio.file.Files.writeString(Files.java:3315)
at TestMemoryInvisibleParent.setParentWithLimit(TestMemoryInvisibleParent.java:111)
at TestMemoryInvisibleParent.testMemoryLimitHiddenParent(TestMemoryInvisibleParent.java:99)
at TestMemoryInvisibleParent.main(TestMemoryInvisibleParent.java:71)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1474)