Skip to main content
Solved

How to change UID and GID of fmeserver engine user in docker version of FME Server >2020?

  • June 9, 2021
  • 2 replies
  • 21 views

skime
Contributor
  • Contributor
  • 14 replies

UID and GID in FME Server engine docker is having 1363 and 1363 values. I would like to change it to 3001 and 3001 (I have servers with such ids prepared).

I have tried to set up environment variables as it is done in FME Server Core docker image:

            - name: FMESERVER_UID

              value: '3001'

            - name: FMESERVER_GID

              value: '3001'

 

But it's not working. Do you have any clues or ideas?

 

Thank you!

Best answer by jlutherthomas

Hi @skime​ 

 

Those env vars look correct, and should work on the engine and core image. You might need to start the container as root as it needs to do some permission changing stuff before it will start the engine as the user with the passed in gid/uid.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

Forum|alt.badge.img+2
  • 364 replies
  • Best Answer
  • June 15, 2021

Hi @skime​ 

 

Those env vars look correct, and should work on the engine and core image. You might need to start the container as root as it needs to do some permission changing stuff before it will start the engine as the user with the passed in gid/uid.


skime
Contributor
  • Author
  • Contributor
  • 14 replies
  • June 16, 2021

Hello @jlutherthomas​ 

 

Thank you for the suggestion. We are deploying our FME Server to Kubernetes so we had to add in engine deployment:

      securityContext:
        runAsUser: 0

+ variables that I mentioned in the first post and it worked like a charm. Thank you!