Deploying a container with custom user requirements (Unraid 6.10.3 - Sonatype/Nexus)

Recommended Posts



I am trying to deploy a container from which should've been fairly straight forward exposing the port that is needed and a folder for nexus to create persistent data.


When the container starts it crashes because it is unable to write into the data directory, which like any other directory belongs to "users:nobody" the container tries to write into this with a user "nexus:nexus" with uid/gid "200:200" and naturally fails.


I've looked into the template and did some digging around the internet and this user 200 is hardcoded in nexus way too early in the process deep down inside build stages in "chef"  (some details here if you are interested: )


There is a NexusOSS in community applications, but it is doing the exact same behaviour and I am not certain if it ever worked at all. There is a single question in the support thread and nothing else. It looks like someone copy pasted parts of CA auto generated template and left it there.


Now I can run the container in privileged mode and this "may" solve the issue, but I really don't want to do that. I have also tried creating a user in unraid from cli, called "nexus" with userid "200" and belonging to "users" group, and that did not work either (also this again probably is not a nice solution)


Anyone has any similar experience with containers? what is the best approach here? you got plenty of experience in taming unruly containers, any suggestions?




Link to comment

I was hoping to avoid doing this, with may be some DockerFile wizardy, that I can import/modify original container and publish it on dockerhub, that does not have this uid/gid requirement. 


I mean there are so many other containers writing into these persistent directories.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.