-
Notifications
You must be signed in to change notification settings - Fork 25
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
Can't change the user ID and group ID #73
Comments
Hello, what UID and GID did you set it to? 1000:1000? You might need to set the environment variables on a fresh container rather than one which was already started, because the unms has already been created. Make sure to use the same persistent data location though. |
I'm having the same issue. When I try to create a new docker using I see this:
|
I copied the folder over to a new folder, changed the permissions for that folder. Created a new container with the right user and group and linked it to the new folder but still have this error:
|
I made some adjustments to the UID / GID handling so that using UID / GIDs that already exist should no longer be an issue. Please try it out using the |
Thanks but that didn't help.
|
What exactly did you change between the log you posted the first time and the log now? Did you change the command to create / start the container? The way it was the first time was correct. Now it seems like the actual container is executed with a non root user, which doesn't work. Setting the PUID / PGID environment variables should be the only thing needed for changing the container user. |
I ran the following command, and it seemed to have worked I'm no longer getting the error on the adduser, but it does not stay up.
|
forget the last message.. I took the --restart unless-stopped off the end. Now I need to look at other issues. |
I am using docker-compose to deploy the container. These are the steps I am following:
I've also tried changing the unmstest folder user/group ID to the one used in the docker compose with same results.
|
I want to change/use the host user rather than unms user. I used the environment options to set PUID and PGID but the container fails to start.
While using the environment options:
Without environment options:
The text was updated successfully, but these errors were encountered: