Documentation
¶
Overview ¶
Package identity provides manipulating user(+group) identity strings as used in the Docker API for running containers and executing new processes inside containers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithGroup ¶
WithGroup configures the group the command(s) inside a container will be run as, taking either a group name or ID. If an empty group name "" is specified, any configured group name or ID will be removed.
func WithUser ¶
WithUser configures the user and optionally group the command(s) inside a container will be run as, taking either a user name, user:group names, or a user ID. WithUser will remove any previously configured group, either setting the specified group or configuring no group at all (so that the container image default applies).