Skip to content

Starting a container as non-root userΒ #2590

@michael-schnell

Description

@michael-schnell

It would be nice to allow starting a container with a non-root user.

On the Docker command line this is normally done with the "--user" argument:

--user 1000:1000 

The container class should allow parameter like:

.withUser("1000:1000")
.withUid(1000)
.withGid(1000)
.withCurrentUid()
.withCurrentGid()

The last two are convenience functions to simply use the current user's UID and GID (the user that is running the test).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions