RFR: 8351382: New test containers/docker/TestMemoryWithSubgroups.java is failing [v2]

Severin Gehwolf sgehwolf at openjdk.org
Tue Mar 11 10:01:11 UTC 2025


On Tue, 11 Mar 2025 00:50:42 GMT, Sergey Chernyshev <schernyshev at openjdk.org> wrote:

> > This won't work under `podman`:
> > ```
> > $ podman info -f '{{println .SecurityOptions}}
> > > '
> > Error: template: info:1:10: executing "info" at <.SecurityOptions>: can't evaluate field SecurityOptions in type system.infoReport
> > ```
> > I'm not sure we need to go through the `SecurityOptions` thing. How about `if (!Platform.isRoot()) { ... }`?
> 
> Thanks @jerboaa , I updated the PR, please take a look. `Platform.isRoot()` works with podman, but it doesn't work with docker. The latter depends on the mode in which the dockerd runs, rather than on whether the container is started with root privileges.

This would be useful info to have in the JBS issue.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/23948#issuecomment-2713445551


More information about the hotspot-runtime-dev mailing list