Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UID other than 1000 #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matejrisek
Copy link

@matejrisek matejrisek commented May 3, 2022

To resolve all the issue from https://github.com/glotcode/docker-run/issues we can specify a fixed UID for the glot user which is not 1000.

By default UID is set to 1000 which also mostly corresponds to the local user UID. Because of this limits are enforced based on the resource usage of the local user + glot. Current nproc hard limit defaults to 100, and there are usually more than 100 processes running for a typical Linux desktop user. Because of that the container cannot exec any more processes and fails with: resource temporarily unavailable.

The UID in the nix definition probably shouldn't be a magic number but I know no nix to help parameterize it :)

@2colours
Copy link

@prasmussen please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants