Skip to content

Fix: Permission issues when running as users with id other than 1000

Kshitij Sobti requested to merge kshitij/fix-permission-issues into main

Description

The current docker containers are run with UID=1000, this works well if you're running as a user with that ID, but if not, you get permission errors. This uses the UID and GID of the current user to get around that.

Supporting information

When running Grove as a user with ID 1001, I faced issues since the user inside docker has the ID 1000 and as such when local folders are mounted, it runs into permission issues.

Testing instructions

Steps to test the changes:

  1. Try to run grove/tf/tutor commands as a user with ID other than 1000.
  2. You should run into permission issues.
  3. Check out this PR and try running those command again.
  4. You should not get permisssion errors.

Dependencies

None

Screenshots

N.A.

Checklist

If any of the items below is not applicable, do not remove them, but put a check in it.

  • All providers include the new feature/change
  • All affected providers can provision new clusters
  • Unit tests are added/updated
  • Documentation is added/updated
  • The TOOLS_CONTAINER_IMAGE_VERSION in ci_vars.yml is updated
  • The grove-template repository is updated

Additional context

NA.

Merge request reports