Ability to override UID of user in Docker

Hi. I couldn’t find this in the Docker documentation, but is there a way to override the UID defaults for the Docker user?

The documentation notes that the UID default is to 1000. For other Docker approaches like Linuxserver releases, there is an ability to override the UID through environment variables. For example:

      - PUID=1000
      - PGID=1000

I’m currently migrating my old repositories into a new system that, by default, has a separate set of IDs that I need to align with (1030), so it’ll be ideal if I can patch this on the Docker side.

Is that possible?

Hi, this should be possible by setting the user with -u like this:

docker run --name scmm -p 8080:8080 -u 1030 -v /your/path:/var/lib/scm scmmanager/scm-manager:2.32.2

We have not tested this in-depth, though, so please let us know, if you run into any issues.

@pfeuffer Is there a version of this command using Docker compose?

I tried the following:

version: '2.0'
    container_name: scmm
    image: scmmanager/scm-manager:2.32.2
    - 8080:8080
    user: '1030'
    - /your/path:/var/lib/scm

Hey @mixable , no we have no explicit docker compose file, but yours is looking good to me and seems to be working quite well.

Did you run into any issues with this one?

I am closing this topic as there has been no activity for more than 30 days.