Package io.quarkus.deployment.pkg.steps
Class ContainerUserResolver
java.lang.Object
io.quarkus.deployment.pkg.steps.ContainerUserResolver
Resolves the UID and GID of the user that runs inside a container image by executing
id inside an ephemeral container. Results are cached per image for the lifetime of the JVM
to avoid repeated process launches.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionresolve(ContainerRuntimeUtil.ContainerRuntime runtime, String image) Returns theContainerUserResolver.ContainerUser(uid, gid) for the default user of the given image, ornullif detection failed (e.g. theidcommand is not available).
-
Method Details
-
resolve
public static ContainerUserResolver.ContainerUser resolve(ContainerRuntimeUtil.ContainerRuntime runtime, String image) Returns theContainerUserResolver.ContainerUser(uid, gid) for the default user of the given image, ornullif detection failed (e.g. theidcommand is not available). Successful resolutions are cached for the lifetime of the JVM; failures are not cached so callers can retry after transient errors (e.g. network issues while pulling the image).
-