https://github.com/magenta-aps/docker_user_mapping
https://github.com/magenta-aps/docker_user_mapping
docker group identifier template user
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/magenta-aps/docker_user_mapping
- Owner: magenta-aps
- License: mpl-2.0
- Created: 2019-05-16T09:06:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-16T09:29:53.000Z (over 6 years ago)
- Last Synced: 2025-02-17T15:47:47.637Z (11 months ago)
- Topics: docker, group, identifier, template, user
- Language: Shell
- Size: 8.79 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker User Mapping
Example container for how to update UID and GID at container creation-time.
## Usage:
```
docker build -t magentadk/docker_user_mapping .
docker run --rm -it -e PUID=1111 -e PGID=1200 magentadk/docker_user_mapping /bin/bash
```
## Configuration:
The example exposes 4 environment variables:
* `PUID`: Process User ID: The ID of the default user after the entry-point has run.
* `PGID`: Process Group ID: The ID of the default group after the entry-point has run.
* `USER`: Username: The name of the default user after the entry-point has run.
* `GROUP`: Groupname: The name of the default group after the entry-point has run.