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

UID and GID 999 are system IDs and are not to be used by non-default-distro processes such as container services #33

Open
bbruun opened this issue Sep 4, 2024 · 0 comments

Comments

@bbruun
Copy link

bbruun commented Sep 4, 2024

I was trying out the docker image and setting up docker-compose and kept getting errors about access. That OS distro is RHEL 8.

It appears that "you" use UID 999 (and 1000 for some reason) and GID 999 for the service inside the docker image.
That overlaps with the default <1000 is system user and groups only.

You set the UID/GID's here: https://github.com/search?q=repo%3Avalkey-io%2Fvalkey-container%20999&type=code

On e.g. RHEL 8 then

  • UID 999 is the systemd-coredump user managed and installed by systemd
  • GID 999 is the input group (I don't know which one uses it on a server).

Could you fix this mixup of valkey being a system service maintained by the distros and make the UID and GID larger than 1000 which is also the advised method for non system accounts. E.g. 65535 for both would be ideal as it is the default "nobody" group on systems.

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

No branches or pull requests

1 participant