Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattwelke/docker-executable-with-custom-user-example
https://github.com/mattwelke/docker-executable-with-custom-user-example
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattwelke/docker-executable-with-custom-user-example
- Owner: mattwelke
- License: unlicense
- Created: 2024-02-22T16:43:19.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-06-13T02:50:45.000Z (7 months ago)
- Last Synced: 2024-10-14T02:24:13.036Z (3 months ago)
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-executable-with-custom-user-example
An example for how to build a Dockerfile where it executes a file, but the user executing it is not the root user. See `Dockerfile` for details.
To build and run the image:
```bash
./build.sh && docker run --rm docker-executable-with-custom-user-example
```Example output:
```
...
Hello, World! I am myuser
```