Skip to content

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